
function submitForms() {if ( isFirstName() && isEmail() && isLastName())
if (confirm("\n You are about to submit your information. \n\nYES to submit.    NO to abort.")){alert("\n Your submission will now be sent!");
return true;
}
else
{
alert("\n You have chosen to abort the submission.");
return false
}
else 
return false;
}
function isEmail() {
if (document.news.elements.email.value == "") {
alert ("\n The E-Mail field is blank. \n\n Please enter your E-Mail address.")
document.news.elements.email.focus();
return false;
}
if (document.news.elements.email.value.indexOf ('@',0) == -1 ||
document.news.elements.email.value.indexOf ('.',0) == -1) {
alert ("\n The E-Mail field requires a \"@\" and a \".\"be used. \n\nPlease re-enter your E-Mail address.")
document.news.elements.email.select();
document.news.elements.email.focus();
return false;
}
return true;
}
function isFirstName() {
if (document.news.elements.name.value == "") {
alert ("\n The Name field is blank. \n\nPlease enter your First Name.")
document.news.elements.name.focus();
return false;
}
return true;
}
function isLastName() {
if (document.news.elements.last.value == "") {
alert ("\n The Last Name field is blank. \n\nPlease enter Your Last Name:.")
document.news.elements.last.focus();
return false;
}
return true;
}
//-------------------
