
function validateForm( )
{
	if (document.getElementById("frmContact").txtName.value == "")
	{
		alert("Please enter your Name.");

		document.getElementById("frmContact").txtName.focus( );

		return false;
	}
	
	if (!validateEmailFormat(document.getElementById("frmContact").txtEmail.value))
	{
		alert("Please enter Your valid Email Address!");

		document.getElementById("frmContact").txtEmail.focus( );
		document.getElementById("frmContact").txtEmail.select( );

		return false;
	}	

	if (document.getElementById("frmContact").txtComments.value == "")
	{
		alert("You have not entered any Comment on the form.");

		document.getElementById("frmContact").txtComments.focus( );

		return false;
	}

	return true;
}