// Validator

function formValidate(theform){
	if (theform.CustomerName.value == "") {
   		alert("Please enter the contact name.");
		theform.CustomerName.focus();
    	return (false);
	}
	if (theform.CompanyName.value == "") {
   		alert("Please enter the company name.");
		theform.CompanyName.focus();
    	return (false);
	}
	if (theform.Address1.value == "") {
   		alert("Please enter the address.");
		theform.Address1.focus();
    	return (false);
	}
	if (theform.City.value == "") {
   		alert("Please enter the city.");
		theform.City.focus();
    	return (false);
	}
	if (theform.State.value == "") {
   		alert("Please enter the state.");
		theform.State.focus();
    	return (false);
	}
	if (theform.zipCode.value == "") {
   		alert("Please enter the zip code.");
		theform.zipCode.focus();
    	return (false);
	}
	if (theform.TypeOfBuisness.value == "") {
   		alert("Please tell us what type of business this would be for.");
		theform.TypeOfBuisness.focus();
    	return (false);
	}
	if (theform.PhoneNumber.value == "") {
   		alert("Please enter the phone number.");
		theform.PhoneNumber.focus();
    	return (false);
	}
	if (theform.email.value == "") {
   		alert("Please enter the contact email address.");
		theform.email.focus();
    	return (false);
	}
	if (theform.FrequencyDays.value == "") {
   		alert("Please enter the number of days you will need our service");
		theform.FrequencyDays.focus();
    	return (false);
	}	
	if (theform.FrequencyTime.selectedIndex == 0) {
   		alert("Please enter the frequency with which you will need our service.");
		theform.FrequencyTime.focus();
    	return (false);
	}
	if (theform.SquareFeet.value == "") {
   		alert("Please tell us how many square feet you have in your office.");
		theform.SquareFeet.focus();
    	return (false);
	}
	if (theform.NumEmployees.selectedIndex == 0) {
   		alert("Please enter the number of employees.");
		theform.NumEmployees.focus();
    	return (false);
	}
	if (theform.lavatories.value == "") {
   		alert("Please enter the number of lavoratories.");
		theform.lavatories.focus();
    	return (false);
	}
	if (theform.KitchensPantries.value == "") {
   		alert("Please enter the number of kitchen pantries.");
		theform.KitchensPantries.focus();
    	return (false);
	}
	
	return (true);
}
