function doNew(){
	if (document.form.txtFName.value=="" || !IsEnglish(document.form.txtFName.value) ) {
		alert("First name must be specified");
		document.form.txtFName.focus();
		return false;
	}
	if (document.form.txtLName.value=="" || !IsEnglish(document.form.txtFName.value) ) {
		alert("Last name must be specified");
		document.form.txtLName.focus();
		return false;
	}
	if ( document.form.txtUName.value=='' ) {
		alert("Username must be specified");
		document.form.txtUName.focus();
		
		return false;
	}
	
	if (document.form.txtPass.value.length<5 ) {
		alert("the password must contain at least 5 characters");
		document.form.txtPass.focus();
		return false;
	}
	if (document.form.txtPass.value != document.form.txtPass2.value ) {
		alert("Confirmation password is not equal to the main password");
		document.form.txtPass2.focus();
		return false;
	}
	
	
	if (document.form.txtMobile.value=="" &&  document.form.txtPhone.value=="" && document.form.txtFax.value=="") {
		alert("At least one phone number is required");
		document.form.txtPhone.focus();
		return false;
	}
	
	if (!IsEmail(document.form.txtEmail.value) ) {
		alert("Invalid Email address");
		document.form.txtEmail.focus();
		return false;
	}
	if ( document.form.txtZip.value=='' ) {
		alert("Zip code must be specified");
		document.form.txtZip.focus();		
		return false;
	}
	if (document.form.cmbState.value=="") {
		alert("State must be specified");
		document.form.cmbState.focus();
		return false;
	}
	if (document.form.updWholesaler.disabled ==false && document.form.updWholesaler.value =="" &&  document.form.check_updWholesaler.value=='1')  {
		alert("You must upload the file which proves that you are a wholesaler.");
		document.form.updWholesaler.focus();
		return false;
	}
	
	
	document.form.act.value="save";
	return true;
}