function verify() {
var formcontent=document.frmMailingList.resume.value
formcontent=formcontent.split(" ")
var themessage = "Please correct the following errors: ";

if (document.frmMailingList.email.value == "")
{
	themessage = themessage + " - You must enter an e-mail address";
}

if (document.frmMailingList.email.value.indexOf("@", 0) < 0)
{
	themessage = themessage + "- E-mail address must contain an @ symbol";
}

if (document.frmMailingList.email.value.indexOf(".", 0) < 0)
{
    themessage = themessage + " - E-mail address must contain a period";
}

//alert if fields are empty and cancel form submit
if (themessage == "Please correct the following errors: ") {
document.frmMailingList.submit();
}
else {
alert(themessage);
return false;
   }
}
