function onlineappcheck() {
var themessage = "Please fill in the following fields: ";

if (document.onlineapp.mailfrom.value=="") {
themessage = themessage + " - Email Address";
}
if (document.onlineapp.fname.value=="") {
themessage = themessage + " - First Name";
}
if (document.onlineapp.lname.value=="") {
themessage = themessage + " -  Last Name";
}
if (document.onlineapp.address1.value=="") {
themessage = themessage + " -  Address";
}
if (document.onlineapp.city.value=="") {
themessage = themessage + " -  City";
}
if (document.onlineapp.state.value=="") {
themessage = themessage + " -  State";
}
if (document.onlineapp.zipcode.value=="") {
themessage = themessage + " -  Zip Code";
}
if (document.onlineapp.dayphone.value=="") {
themessage = themessage + " -  Phone Number";
}
if (document.onlineapp.educationlvl[0].checked==false && document.onlineapp.educationlvl[1].checked==false) {
themessage = themessage + " -  Education Level";
}
if (document.onlineapp.question1[0].checked==false && document.onlineapp.question1[1].checked==false) {
themessage = themessage + " -  General Question 1";
}
if (document.onlineapp.question2[0].checked==false && document.onlineapp.question2[1].checked==false) {
themessage = themessage + " -  General Question 2";
}
if (document.onlineapp.question3[0].checked==false && document.onlineapp.question3[1].checked==false) {
themessage = themessage + " -  General Question 3";
}
if (document.onlineapp.question4[0].checked==false && document.onlineapp.question4[1].checked==false) {
themessage = themessage + " -  General Question 4";
}
if (document.onlineapp.question5[0].checked==false && document.onlineapp.question5[1].checked==false) {
themessage = themessage + " -  General Question 5";
}

//alert if fields are empty and cancel form submit
if (themessage == "Please fill in the following fields: ") {
document.form.submit();
}
else {
alert(themessage);
return false;
   }
}
