function validateForm(form) {

// Make sure the area they wish to live is entered
     var relocatingto = form.relocatingto
     
     if (relocatingto.value.length == 0) {
       alert("Please enter the area you wish to live");
       relocatingto.focus();
       relocatingto.select();
       return false;
     }

// Make sure that the name is filled in
     var name = form.name
       if (name.value.length == 0) {
         alert("Dale needs your name to give you a response");
         name.focus();
         name.select();
         return false;
     }

// Make sure you can contact the visitor with a response 
     var address = form.address
     var city = form.city
     var state = form.state
     var zipcode = form.zipcode
     var homephone = form.homephone
     var workphone = form.workphone
     var city = form.city
     var email = form.emailfrom
     
     if (address.value.length == 0 || city.value.length == 0 || state.value.length == 0 || zipcode.value.length ==0) {
       if (email.value.length == 0) {
         alert("Please enter a valid email address.");
         email.focus();
         email.select();
         return false;
       }
       if (homephone.value.length == 0 && workphone.value.length == 0) {
         alert("Please enter a valid phone number.");
         workphone.focus();
         workphone.select();
         return false;
       }
     }

  return true;
}

//--  End of function validateForm(form)