<!--
	function echeck(str) 
	{
			var at="@"
			var dot="."
			var lat=str.indexOf(at)
			var lstr=str.length
			var ldot=str.indexOf(dot)
			if (str.indexOf(at)==-1){
			   alert("Invalid E-mail ID")
			   return false
			}
			if (str.indexOf(at)==-1 || str.indexOf(at)==0 || str.indexOf(at)==lstr){
			   alert("Invalid E-mail ID")
			   return false
			}
			if (str.indexOf(dot)==-1 || str.indexOf(dot)==0 || str.indexOf(dot)==lstr){
			    alert("Invalid E-mail ID")
			    return false
			}
			 if (str.indexOf(at,(lat+1))!=-1){
			    alert("Invalid E-mail ID")
			    return false
			 }
			 if (str.substring(lat-1,lat)==dot || str.substring(lat+1,lat+2)==dot){
			    alert("Invalid E-mail ID")
			    return false
			 }
			 if (str.indexOf(dot,(lat+2))==-1){
			    alert("Invalid E-mail ID")
			    return false
			 }
			 if (str.indexOf(" ")!=-1){
			    alert("Invalid E-mail ID")
			    return false
			 }
 			 return true					
		}	


	function ValidateForm()
	{ 
		var Nfname=document.form2.First_Name;
		if ((Nfname.value==null)||(Nfname.value=="")){
			alert("Please Enter your First Name")
			Nfname.focus()
			return false
		}
		
		var Nlname=document.form2.Last_Name;
		if ((Nlname.value==null)||(Nlname.value=="")){
			alert("Please Enter your Last Name")
			Nlname.focus()
			return false
		}
		
		var Ccompany=document.form2.Company;
		if ((Ccompany.value==null)||(Ccompany.value=="")){
			alert("Please Enter your Company Name")
			Ccompany.focus()
			return false
		}		
		
		var Aaddressone=document.form2.Address_One;
		if ((Aaddressone.value==null)||(Aaddressone.value=="")){
			alert("Please Enter your Address")
			Aaddressone.focus()
			return false
		}		
		
		var Ccity=document.form2.City;
		if ((Ccity.value==null)||(Ccity.value=="")){
			alert("Please Enter your City")
			Ccity.focus()
			return false
		}		
		
		var Sstate=document.form2.State;
		if ((Sstate.value==null)||(Sstate.value=="")){
			alert("Please Enter your State")
			Sstate.focus()
			return false
		}				
		
		var Ccountry=document.form2.Country;
		if ((Ccountry.value==null)||(Ccountry.value=="")){
			alert("Please Enter your Country")
			Ccountry.focus()
			return false
		}		
		
		var Pccode=document.form2.Phone_Country_Code;
		if ((Pccode.value==null)||(Pccode.value=="")){
			alert("Please Enter your Phone Country Code")
			Pccode.focus()
			return false
		}
			
		var Pacode=document.form2.Phone_Area_Code;
		if ((Pacode.value==null)||(Pacode.value=="")){
			alert("Please Enter your Phone Area Code")
			Pacode.focus()
			return false
		}
			
		var Ppnumber=document.form2.Phone_Number;
		if ((Ppnumber.value==null)||(Ppnumber.value=="")){
			alert("Please Enter your Phone Number")
			Ppnumber.focus()
			return false
		}

		var emailID=document.form2.Email_Address
		if ((emailID.value==null)||(emailID.value=="")){
			alert("Please Enter your Email ID")
			emailID.focus()
			return false
		}
		
		if (echeck(emailID.value)==false){
			emailID.value=""
			emailID.focus()
			return false
		}
		

		return true
	 }
//-->

