function checkform(regform) {
if (regform.uname.value == "" || regform.pwd.value == "")
  {
    alert("You must select a username and password to register for this site");
    return (false);
  }
if (regform.name.value == "" || regform.lastname.value == "")
  {
    alert("Please fill in your full name.");
    return (false);
  }
if (regform.hphone.value == "" && regform.wphone.value == "" && regform.cphone.value == "")
  {
    alert("Please provide at least one contact phone number..");
    return (false);
  }
if (!(/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(regform.email.value))){
alert("Please enter a valid email address. Your registration confirmation will be sent to this address..");
return (false);
}
if (regform.dob.value == "" || regform.mob.value == "" || regform.yob.value == "" || regform.yob.value < "1900" || regform.yob.value > "2007")
  {
    alert("Please provide your complete and accurate date of birth. Your medical provider will require this information for us to negotiate any claim on your behalf.");
    return (false);
  }
if (regform.assoc.value == "" && regform.asno.value != "") {
   alert("Both Association affiliation and membership number are required to qualify for any association discount.");
    return (false);
}
if (regform.asno.value == "" && regform.assoc.value != "") {
   alert("Both Association affiliation and membership number are required to qualify for any association discount.");
    return (false);
}
}







