function validateForm() {
with (document.forma1) {
var alertMsg = "The following REQUIRED fields\nhave been left empty:\n";
if (accounting_service.options[accounting_service.selectedIndex].value == "") alertMsg += "\naccounting service";
if (annual_revenue.options[annual_revenue.selectedIndex].value == "") alertMsg += "\nannual revenue";
radioOption = -1;
for (counter=0; counter<how_often.length; counter++) {
if (how_often[counter].checked) radioOption = counter;
}
if (radioOption == -1) alertMsg += "\nhow often will you need the service";
if (industry.options[industry.selectedIndex].value == "") alertMsg += "\nindustry";
if (zip.value == "") alertMsg += "\nzip code";
if (city.value == "") alertMsg += "\ncity";
if (state.value == "") alertMsg += "\nstate";
if (email.value == "") alertMsg += "\nemail";
if (company_name.value == "") alertMsg += "\ncompany name";
if (first_name.value == "") alertMsg += "\nfirst name";
if (last_name.value == "") alertMsg += "\nlast name";
if (phone_area.value == "") alertMsg += "\nphone area";
if (phone.value == "") alertMsg += "\nphone";
if (mob_area.value == "") alertMsg += "\ncell area";
if (mob_phone.value == "") alertMsg += "\ncell phone";
if (best_time.options[best_time.selectedIndex].value == "") alertMsg += "\nbest time";
radioOption = -1;
for (counter=0; counter<type_of_business.length; counter++) {
if (type_of_business[counter].checked) radioOption = counter;
}
if (radioOption == -1) alertMsg += "\ntype of business";
if (alertMsg != "The following REQUIRED fields\nhave been left empty:\n") {
alert(alertMsg);
return false;
} else {
return true;
} } }
