function verify() {
var themessage = "You are required to complete the following fields: ";
if (document.form.ContactPerson.value=="") {
themessage = themessage + " - Name of the Contact person";
}
if (document.form.email.value=="") {
themessage = themessage + " -  Email address";
}
if (document.form.Phone.value=="") {
themessage = themessage + " -  Phone Number";
}
if (document.form.building.value=="") {
themessage = themessage + " -  Building/Structure Name";
}
if (document.form.roomnumber.value=="") {
themessage = themessage + " -  Room Number or Description of location";
}
if (document.form.AmountofWaste.value=="") {
themessage = themessage + " -  Approximate amount of waste to be collected";
}
if (document.form.FundSource.value=="") {
themessage = themessage + " -  Generator fund source";
}

//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;
   }
}

