function checkForm(form)
  {
    
    if(form.customers_firstname.value == '') {
      alert("write first name");
      form.customers_firstname.focus();
      return false;
    }  
     if(form.customers_lastname.value == '') {
      alert("write last name");
      form.customers_lastname.focus();
      return false;
    }  
  
     if(form.customers_dob.value == '') {
      alert("write date of birth");
      form.customers_dob.focus();
      return false;
    }
      if(form.customers_address.value == '') {
      alert("write address");
      form.customers_address.focus();
      return false;
    }
      if(form.customers_city_st_zip.value == '') {
      alert("write city/state/zip");
      form.customers_city_st_zip.focus();
      return false;
    }
      if(form.customers_email.value == '') {
      alert("write valid email");
      form.customers_email.focus();
      return false;
    }
      if(form.customers_pass.value == '') {
      alert("enter password");
      form.customers_pass.focus();
      return false;
    }
      if(form.customers_pass.value != form.customers_pass_rep.value) {
      alert("enter same password");
      form.customers_pass.focus();
      return false;
    }


      
     
    // allow form to be submitted
    return true;
  }
