<!--
	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 Nname=document.form2.name;
		if ((Nname.value==null)||(Nname.value=="")){
			alert("Please Enter your Name")
			Nname.focus()
			return false
		}
		
		var Aasi=document.form2.asi;
		if ((Aasi.value==null)||(Aasi.value=="")){
			alert("Please Enter your ASI Number")
			Aasi.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.addressone;
		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 Zzip=document.form2.zip;
		if ((Zzip.value==null)||(Zzip.value=="")){
			alert("Please Enter your Zip Code")
			Zzip.focus()
			return false
		}		
		
		var Ccountry=document.form2.country;
		if ((Ccountry.value==null)||(Ccountry.value=="")){
			alert("Please Enter your Country")
			Ccountry.focus()
			return false
		}		
		
		var Pphone=document.form2.phone;
		if ((Pphone.value==null)||(Pphone.value=="")){
			alert("Please Enter your Phone Number")
			Pphone.focus()
			return false
		}

		var emailID=document.form2.email
		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
	 }
//-->
