function regValid(form)
//Script to handle Client side Validation
{
  


  if (document.Register.UserName.value==""){
       alert("Please Enter the UserName!");
       return false;
     } 
  if (document.Register.Password.value==""){
       alert("Please Enter the Password!");
       return false;
     } 
	var foundAt = document.Register.Email.value.indexOf("@",0) && document.Register.Email.value.indexOf(".",0)
	if (document.Register.Email.value=="" || foundAt < 1){
	//	okSoFar=false
		alert("Please fill the Email field!")
		return false;
	}
  if (document.Register.CName.value==""){
       alert("Please Enter the Company Name!");
       return false;
     } 
  if (document.Register.FName.value==""){
       alert("Please Enter the First Name!");
       return false;
     } 
  if (document.Register.LName.value==""){
       alert("Please Enter the Last Name!");
       return false;
     } 
  if (document.Register.Address.value==""){
       alert("Please Enter the Address!");
       return false;
     } 
  if (document.Register.City.value==""){
       alert("Please Enter the City!");
       return false;
     } 
  if (document.Register.State.value==""){
       alert("Please Enter the State!");
       return false;
     } 
  if (document.Register.Zip.value==""){
       alert("Please Enter the Zip Code!");
       return false;
     } 
  if (document.Register.Country.value==""){
       alert("Please Select Country From List!");
       return false;
     } 
  if (document.Register.Phone.value==""){
       alert("Please Enter the Phone Number with Country Code!");
       return false;
     } 
  if (document.Register.Fax.value==""){
       alert("Please Enter the Fax Number with Country Code!");
       return false;
     } 
  if (document.Register.Mobile.value==""){
       alert("Please Enter the Mobile Number with Country Code!");
       return false;
     } 
  if (document.Register.Bustype.value==""){
       alert("Please Select Business Type!");
       return false;
     } 
  if (document.Register.HearAbout.value==""){
       alert("Please Select Hear About Our Web site From List!");
       return false;
     } 

}
