function verify_membership() {
var themessage = "You are required to complete the following fields: ";
if (document.form.entry_name.value=="") {
themessage = themessage + " - Name";
}
if (document.form.agency.value=="") {
themessage = themessage + " - Name/Agency";
}
if (document.form.address1.value=="") {
themessage = themessage + " - Address";
}
if (document.form.city.value=="") {
themessage = themessage + " - City";
}
if (document.form.zipcode.value=="") {
themessage = themessage + " - Zip";
}
if (document.form.phone.value=="") {
themessage = themessage + " - Phone";
}
if (document.form.email.value=="") {
themessage = themessage + "- Email";
}
if (document.form.position_title.value=="") {
themessage = themessage + "- Position/Title";
}

//alert if fields are empty and cancel form submit
if (themessage == "You are required to complete the following fields: ") {
document.form.submit();
}
else {
alert(themessage);
return false;
   }
}

function refresh_conference_application() {
  var themessage = "You are required to complete the following fields: ";
  
  if (document.conference_application.membership_selection.value==NULL || document.conference_application.membership_selection.value=="None") {
    themessage = themessage + " - Membership";
  }
  alert(document.conference_application.membership_selection.value);
  if (themessage == "You are required to complete the following fields: ") {
    document.conference_application.action = "conference_application.php";
    document.conference_application.submit();
  } else {
    alert(themessage);
    return false;
  }
}

function submit_conference_application() {
var themessage = "You are required to complete the following fields: ";

if (document.conference_application.entry_name.value=="") {
themessage = themessage + " - Name";
}
if (document.conference_application.agency.value=="") {
themessage = themessage + " - Name/Agency";
}
if (document.conference_application.address1.value=="") {
themessage = themessage + " - Address";
}
if (document.conference_application.city.value=="") {
themessage = themessage + " - City";
}
if (document.conference_application.state.value=="") {
themessage = themessage + " - State";
}
if (document.conference_application.zipcode.value=="") {
themessage = themessage + " - Zip";
}
if (document.conference_application.phone.value=="") {
themessage = themessage + " - Phone";
}
if (document.conference_application.email.value=="") {
themessage = themessage + "- Email";
}
if (document.conference_application.position_title.value=="") {
themessage = themessage + "- Position/Title";
}

//alert if fields are empty and cancel form submit
if (themessage == "You are required to complete the following fields: ") {
//we are good to continue
}
else {
alert(themessage);
return false;
   }
}