// JavaScript Document
function validate()
	{
											var n=document.form.name
											var mail=document.form.email.value
											var cem=document.form.cemail.value
											if(n.value=="")
											{
											alert("Please Enter Your Name")
											n.focus()
											return false
											}
											if(mail=="")
 {
	alert("Please enter your email ..!!!");
	document.form.email.focus();
	return false
	}
 if (document.form.email.value.length>0)
	{
 	i=document.form.email.value.indexOf("@")
 	j=document.form.email.value.indexOf(".",i)
 	k=document.form.email.value.indexOf(",")
 	kk=document.form.email.value.indexOf(" ")
 	jj=document.form.email.value.lastIndexOf(".")
	 len=document.form.email.value.length
	 if((i>0)&&(j>(1+1))&&(k==-1)&&(kk==-1)&&(len-jj>=2))
	 //&&(len-jj<=3))
	 {
	 //document.cform.ConfirmEmail.focus();//
	 }
	 else
	 {
	 	alert("Please enter an exact email address.\n" + document.form.email.value + " is invalid.");
		document.form.email.focus();
	return false
	 }
	}
	 if(mail!=cem)
	 {
	 alert("Both email must be same")
	 document.form.email.focus();
	 return false
	 }
	 document.form.submit

}