
function verify() {
var themessage = "You are required to complete the following fields: ";
if (document.form.eventname.value=="") {
themessage = themessage + " - Event Name";
}
if (document.form.firstname.value=="") {
themessage = themessage + " - First Name";
}
if (document.form.lastname.value=="") {
themessage = themessage + " -  Last Name";
}
if (document.form.address.value=="") {
themessage = themessage + " -  Address";
}
if (document.form.city.value=="") {
themessage = themessage + " -  City";
}
if (document.form.state.value=="") {
themessage = themessage + " -  State";
}
if (document.form.zip.value=="") {
themessage = themessage + " -  Zip";
}
if (document.form.phone.value=="") {
themessage = themessage + " -  Phone";
}
if (document.form.email.value=="") {
themessage = themessage + " -  Email";
}

if ((document.form.source.value=="")||(document.form.source.value=="Choose")){
themessage = themessage + " -  How did you hear about the event?";
}


//alert if fields are empty and cancel form submit
if (themessage == "You are required to complete the following fields: ") {
document.form.submit();
return true;

}
else {
alert(themessage);
return false;
   }
}
