function checkSubmit(form) {
	if(form.firstname.value==""){
		alert("Please enter your first name.");
		form.firstname.focus();
		return false;
	}
	if(form.lastname.value==""){
		alert("Please enter your last name.");
		form.lastname.focus();
		return false;
	}
	var stripped = form.phone.value.replace(/[\(\)\.\-\ ]/g, '');
	//strip out acceptable non-numeric characters
	if (isNaN(parseInt(stripped))) {
		alert("The phone number contains illegal characters.");
		form.phone.focus();
		return false;
	}
	if (!(stripped.length == 10)) {
		alert("The phone number is the wrong length.\nMake sure you included an area code.\n");
		form.phone.focus();
		return false;
	}
	var regPhone = /^(?:\([2-9]\d{2}\)\ ?|[2-9]\d{2}(?:\-?|\ ?|\.?))[2-9]\d{2}[- .]?\d{4} ?$|^(?:\([2-9]\d{2}\)\ ?|[2-9]\d{2}(?:\-?|\ ?|\.?))[2-9]\d{2}[- .]?\d{4} *x\d*$/; 
	if (!form.phone.value.match(regPhone)) {
		alert("Please enter a valid phone number.");
		return false;
	}
	if (form.email.value.indexOf('@') == -1) {
		alert("Please enter your email address.");
		return false;
	}
	if (form.custentity_lic_states.options[form.custentity_lic_states.selectedIndex].value == "") {
		alert("How many states are you licensed in? Please choose from the drop down menu.");
		form.custentity_lic_states.focus();
		return false;
	}
	if (form.custentity_apps_per_month.options[form.custentity_apps_per_month.selectedIndex].value == "") {
		alert("On average, how many apps do you produce each month? Please choose from the drop down menu.");
		form.custentity_apps_per_month.focus();
		return false;
	}
	if (form.custentity_company_type.options[form.custentity_company_type.selectedIndex].value == "") {
		alert("Tell us about yourself. Please choose from the drop down menu.");
		form.custentity_company_type.focus();
		return false;
	}
}