// JavaScript Document
function validate() 

{



	if (document.frm.txtName.value.length==0)

	{

	alert ("Please Enter Your Name !");

	document.frm.txtName.focus();

	return false;

	}
	
	if (document.frm.txtPhone.value.length==0)

	{

	alert ("Please Enter Your Contact Number !");

	document.frm.txtPhone.focus();

	return false;

	}
	
	// check email
	if (document.frm.txtEmail.value.length==0)

	{

	alert ("Please Enter Your Email Address !");

	document.frm.txtEmail.focus();

	return false;

	}



	txt=document.frm.txtEmail.value;

	if (txt.indexOf("@")<3)

	{

	alert("Your email address seems wrong. \n Please check the prefix and '@' sign. \nEmail address should be in form of (fullname@server.com)");

	document.frm.txtEmail.focus();

	return false;

	}



	txt=document.frm.txtEmail.value;

	if (txt.indexOf(".")<6)

	{

	alert("Email suffix is incorrect \nCheck after @ \nEmail address should be in form of (fullname@server.com)");

	document.frm.txtEmail.focus();

	return false;

	}
}