function validateForm() {
with (document.orderProcess) {
var alertMsg = "The following REQUIRED fields\nhave been left empty:\n";
radioOption = -1;
for (counter=0; counter<flower_cost.length; counter++) {
if (flower_cost[counter].checked) radioOption = counter;
}
if (radioOption == -1) alertMsg += "\nPlease select a price";
if (how_many.value == "") alertMsg += "\nHow many";
if (name.value == "") alertMsg += "\nPlease enter your name";
if (address.value == "") alertMsg += "\nPlease enter your street address";
if (city.value == "") alertMsg += "\nPlease enter your city";
if (state.value == "") alertMsg += "\nPLease enter your state";
if (zip.value == "") alertMsg += "\nPlease enter your zip code";
if (phone.value == "") alertMsg += "\nPlease enter your phone so we can contact you";
if (email.value == "") alertMsg += "\nPlease enter your email address";
if (rec_name.value == "") alertMsg += "\nPlease enter recipient name";
if (rec_address.value == "") alertMsg += "\nPlease enter where we should deliver";

if (rec_city.value == "") alertMsg += "\nPlease enter recipient city";
if (rec_state.value == "") alertMsg += "\nPLease enter recipient state";
if (rec_zip.value == "") alertMsg += "\nPlease enter recipient zip code";

if (rec_phone.value == "") alertMsg += "\nPlease enter the phone number of the recipient";
if (alertMsg != "The following REQUIRED fields\nhave been left empty:\n") {
alert(alertMsg);
return false;
} else {
return true;
} } }



function FillBilling(f) {
  if(f.billingtoo.checked == true) {
    f.rec_name.value = f.name.value;
    f.rec_address.value = f.address.value;
    f.rec_phone.value = f.phone.value;
    f.rec_city.value = f.city.value;
    f.rec_state.value = f.state.value;
    f.rec_zip.value = f.zip.value;
    /* If more fields are used, just expand the parameters
       above to include the additional fields. */
  }
}



