function check(theform)
{
	if(theform.Email.value=="") {	
		alert("Please fill your Email Address!!!")
		theform.Email.focus();
		return false;
	}
	else
	{ if(theform.Email.value.indexOf("@",1)== -1) 
		{
            alert ("Enter a valid E-mail address");
            //theform.email.value="";
            theform.Email.focus();
            return false;
		}
	} 
	////////////////////////////////////////////////////////////////////////
	var regExp = new RegExp("^(?=^.{8,15}$)(?=.*\\d)(?=.*[a-zA-Z])(?!.*\\s).*$");
    if (theform.UserPwd.value == "" || !regExp.test(theform.UserPwd.value))
    {
        alert('Password should be a combination of alphanumeric characters with minimum of 8 and maximum of 15 characters.');
        theform.UserPwd.value = "";
        theform.CUserPwd.value = "";
        theform.UserPwd.focus();
        return false;
    }
	strpassword=new String(theform.UserPwd.value);
	if(strpassword.length < 8 || strpassword.length > 15) {	
	alert("Password should be a combination of alphanumeric characters with minimum of 8 and maximum of 15 characters.")
	theform.UserPwd.focus();
	return false;
	}
	if(theform.UserPwd.value != theform.CUserPwd.value) {	
	alert("You confirmation password does not match!!!")
	theform.CUserPwd.focus();
	return false;
	}
	if(theform.FName.value=="") {	
	alert("Please fill your First Name!!!")
	theform.FName.focus();
	return false;
	}
	if(theform.LName.value=="") {	
	alert("Please fill your Last Name!!!")
	theform.LName.focus();
	return false;
	}
	if(theform.Company.value=="") {	
	alert("Please fill your Registrant/Company Name!!!")
	theform.Company.focus();
	return false;
	}
	if(theform.Address1.value=="") {	
	alert("Please fill your Address!!!")
	theform.Address1.focus();
	return false;
	}
	if(theform.City.value=="") {	
	alert("Please fill your City!!!")
	theform.City.focus();
	return false;
	}
	if(theform.State.value=="") {	
	alert("Please fill your State!!!")
	theform.State.focus();
	return false;
	}
	if(theform.Zip.value=="") {	
	alert("Please fill your Zip!!!")
	theform.Zip.focus();
	return false;
	}
	if(theform.Country.value=="") {	
	alert("Please fill your Country!!!")
	theform.Country.focus();
	return false;
	}

/*	if(theform.email1.value=="") {	
	alert("Please Confirm Email Address!!!")
	theform.email1.focus();
	return false;
	}
	if(theform.email1.value != theform.email.value) {	
	alert("Please check your Email Address!!!")
	theform.email1.focus();
	return false;
	}*/
	if(theform.Phone.value=="") {	
	alert("Please fill your Phone No.!!!")
	theform.Phone.focus();
	return false;
	}
	/*if(theform.UserID.value=="") {	
	alert("Please enter a UserID!!!")
	theform.UserID.focus();
	return false;
	}*/

/*	if(len(theform.uid.value) < "5") {	
	alert("Please enter a userid!!!")
	theform.uid.focus();
	return false;
	}
*/
return true;
}
