// JavaScript Document
function validate_contact()
{
	if (trim(document.frmContact.txtName.value) == "")
	{
		alert("Please enter the your name");
		document.frmContact.txtName.focus();
		return false;
	}
	if (trim(document.frmContact.txtEmail.value) == "")
	{
		alert("Please enter the email address");
		document.frmContact.txtEmail.focus();
		return false;
	}
	else if(checkEmail(document.frmContact.txtEmail.value) == false)
	{
		alert("Please enter a valid email address");
		document.frmContact.txtEmail.focus();
		return false;
	}
	if (trim(document.frmContact.txtEmail.value) == trim(document.frmContact.txtCEmail.value))
	{
		alert("Please enter the email address");
		document.frmContact.txtCEmail.focus();
		return false;
	}
	if (trim(document.frmContact.selTopic.value) == 0)
	{
		alert("Please select your subject");
		document.frmContact.selTopic.focus();
		return false;
	}

}