var regexEmail = /^[\w\-]+(\.[\w\-]+)*@[\w\-]+(\.[\w\-]+)*(\s*,\s*([\w\-]+(\.[\w\-]+)*@[\w\-]+(\.[\w\-]+)*)+)*$/;
var regexCN = /^[A-Za-z0-9\-\.]+$/;

function submitNow() {
	var blnCheck = true;
	var strMsg = "";
	var component = null;

	if(document.login.jlCompanyFullName.value == "")	{
		if(strMsg.length > 0) {
			strMsg = strMsg + "\n" + "Please enter your Full Registered Business/Company/Organization Name.";
			blnCheck = false;
			}
		else {
			strMsg = "Please enter your Full Registered Business/Company/Organization Name.";
			blncheck= false;
			}
		}
	
	if(document.login.jlCompanyFullName.value.length > 255) {
			strMsg = strMsg + "\n" + "Full Registered Business/Company/Organization Name must be less than 255 characters.";
			blnCheck = false;
			
		}
		
	if(document.login.FullName.value == ""){
			strMsg = strMsg + "\n" + "Full Name must not be empty";
			blnCheck = false;
			
		}	
	
	if(document.login.mail.value.length == 0) {
			strMsg = strMsg + "\n" + "Email must not be empty";
			blnCheck = false;
		
		}
	else {
		if(!regexEmail.test(document.login.mail.value))	{
			if(strMsg.length > 0) {
				strMsg = strMsg + "\n" + "The eMail address doesn't seem to be valid." + "\n" + "Separate with comma if there is more than one eMail address.";
				blnCheck = false;
				}
			else {
				strMsg = "The eMail address doesn't seem to be valid." + "\n" + "Separate with comma if there is more than one eMail address.";
				blnCheck = false;
				}
			}
		}
	
	if(document.login.Phone.value.length == 0) {
			strMsg = strMsg + "\n" + "Phone No. must not be empty";
			blnCheck = false;
		}
		
		
	if(document.login.Companyaddress.value.length == 0) {
			strMsg = strMsg + "\n" + "Company Address must not be empty";
			blnCheck = false;
		}

	if(document.login.country.value=="-")	{
		if(strMsg.length > 0) {
			strMsg = strMsg + "\n" + "Please select your country.";
			blnCheck = false;
			}
		else {
			strMsg = "Please select your country.";
			}
		if(component == null) component = document.login.country;
		blnCheck = false;
		}
		


	if(blnCheck) {
		document.login.action  = "regpartner.asp";
		document.login.submit();
		return blnCheck;
		}
	else {
		if(strMsg.length > 0) strMsg = strMsg + "\n\n" + "Please reenter the required information.";
		alert(strMsg);
		return blnCheck;
		}


}