function validateForm() {
with (document.order) {
var alertMsg = "There is a problem with the following fields:\n";
//if (a_customer_name.value == "") alertMsg += "\n--customer name";
//if (b_email.value == "") alertMsg += "\n--email address";
//if (c_phone.value == "") alertMsg += "\n--phone number";
//if (d_street_address.value == "") alertMsg += "\n--street address";
//if (e_city.value == "") alertMsg += "\n--city";
//if (f_state.value == "") alertMsg += "\n--state";
//if (g_zip.value == "") alertMsg += "\n--zip code";
//if (i_best_time.value == "") alertMsg += "\n--best time to reach you";
//if (j_quilt_width.value == "") alertMsg += "\n--width of your quilt";
//if (k_quilt_length.value == "") alertMsg += "\n--length of your quilt";
//if (l_description.value == "") alertMsg += "\n--description and planned use of your quilt";
//radioOption = -1;
//for (counter=0; counter<m_batting.length; counter++) {
//if (m_batting[counter].checked) radioOption = counter;
//}
//if (radioOption == -1) alertMsg += "\n--batting";
//radioOption = -1;
//for (counter=0; counter<n_basting_only.length; counter++) {
//if (n_basting_only[counter].checked) radioOption = counter;
//}
//if (radioOption == -1) alertMsg += "\n--basting only";
//radioOption = -1;
//for (counter=0; counter<o_binding.length; counter++) {
//if (o_binding[counter].checked) radioOption = counter;
//}
//if (radioOption == -1) alertMsg += "\n--binding";
//radioOption = -1;
//for (counter=0; counter<p_complete_binding.length; counter++) {
//if (p_complete_binding[counter].checked) radioOption = counter;
//}
//if (radioOption == -1) alertMsg += "\n--complete binding";
//radioOption = -1;
//for (counter=0; counter<q_hanging_sleeve.length; counter++) {
//if (q_hanging_sleeve[counter].checked) radioOption = counter;
//}
//if (radioOption == -1) alertMsg += "\n--hanging sleeve";
//radioOption = -1;
//for (counter=0; counter<r_trim_quilt.length; counter++) {
//if (r_trim_quilt[counter].checked) radioOption = counter;
//}
//if (radioOption == -1) alertMsg += "\n--trim quilt";
//radioOption = -1;
//for (counter=0; counter<s_prepare_backing.length; counter++) {
//if (s_prepare_backing[counter].checked) radioOption = counter;
//}
//if (radioOption == -1) alertMsg += "\n--prepare backing";
//radioOption = -1;
//for (counter=0; counter<t_custom_label.length; counter++) {
//if (t_custom_label[counter].checked) radioOption = counter;
//}
//if (radioOption == -1) alertMsg += "\n--custom label";
//if (v_instructions.value == "") alertMsg += "\n--instructions and design ideas";
//radioOption = -1;
//for (counter=0; counter<w_photo_online.length; counter++) {
//if (w_photo_online[counter].checked) radioOption = counter;
//}
//if (radioOption == -1) alertMsg += "\n--may we display a photo online?";
//radioOption = -1;
//for (counter=0; counter<x_name_with_photo.length; counter++) {
//if (x_name_with_photo[counter].checked) radioOption = counter;
//}
//if (radioOption == -1) alertMsg += "\n--may we mention your name with your photo online?";
//radioOption = -1;
//for (counter=0; counter<y_delivery.length; counter++) {
//if (y_delivery[counter].checked) radioOption = counter;
//}
//if (radioOption == -1) alertMsg += "\n--how would you like us to return your quilt?";
if (z_spamFilter.value != "may") alertMsg += "\n--spam filter. (please type in lowercase)";
if (alertMsg != "There is a problem with the following fields:\n") {
alert(alertMsg);
return false;
} else {
return true;
} } }
