// JavaScript Document

function isEmail(sEmail) {
	var regEmail = /^([\w-]+\.?)*\w+@([\da-zA-z-]+\.)+[a-zA-z]{2,6}$/;
	return regEmail.test(sEmail);
}

function Validator(thisForm) {

	if (thisForm.associateTypeID.value == "0") {
	    alert("Please enter an Associate type.");
	    thisForm.associateTypeID.focus();
	    return (false);
	}

	if (!isEmail(thisForm.contractorEmail.value)) {
		alert("Please enter a valid Email address");
		thisForm.contractorEmail.focus();
		return(false);
	}

	if (thisForm.contractorLicenseNum.value == "") {
		alert("Please enter your License Number");
		thisForm.contractorLicenseNum.focus();
		return(false);
	}
	
 	/*if (thisForm.address1.value == "") {
		alert("Please enter a value for Address");
		thisForm.address1.focus();
		return(false);
	}
	 
	if (thisForm.city.value == "") {
	    alert("Please enter a value for City.");
	    thisForm.city.focus();
	    return (false);
	}

	if (thisForm.state.value == "") {
	    alert("Please enter a value for State.");
	    thisForm.state.focus();
	    return (false);
	}

	if (thisForm.zip.value == "") {
		alert("Please enter a value for Zip Code.");
		thisForm.zip.focus();
		return (false);
	}

	if (thisForm.userFName.value == "") {
		alert("Please enter a value for First Name");
		thisForm.userFName.focus();
		return(false);
	}
	
	if (thisForm.userLName.value == "") {
		alert("Please enter a value for Last Name");
		thisForm.userLName.focus();
		return(false);
	}
	
	if (thisForm.userPhone.value == "") {
		alert("Please enter a value for Phone.");
		thisForm.userPhone.focus();
		return (false);
	}

	if (thisForm.websiteURL.value == "") {
		alert("Please enter a value for Website address");
		thisForm.websiteURL.focus();
		return (false);
	}*/
	
} // END FUNCTION Validator

 -->