
function validateForm( )
{
	if (document.frmContact.txtName.value == "")
	{
		alert("Please enter your Name.");

		document.frmContact.txtName.focus( );

		return false;
	}
	
	if (!validateEmailFormat(document.frmContact.txtEmail.value))
	{
		alert("Please enter Your valid Email Address!");

		document.frmContact.txtEmail.focus( );
		document.frmContact.txtEmail.select( );

		return false;
	}
	
	if (document.frmContact.ddSubject.value == "")
	{
		alert("Please select the Subject.");

		document.frmContact.ddSubject.focus( );

		return false;
	}
	
	if (document.frmContact.txtComments.value == "")
	{
		alert("You have not entered any Comment on the form.");

		document.frmContact.txtComments.focus( );

		return false;
	}	

	return true;
}
