
function submitForms() {if ( isnameName() && isEmail() && isComments())
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.forms[0].elements.email.value == "") {
alert ("\n The E-Mail field is blank. \n\n Please enter your E-Mail address.")
document.forms[0].elements.email.focus();
return false;
}
if (document.forms[0].elements.email.value.indexOf ('@',0) == -1 ||
document.forms[0].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.forms[0].elements.email.select();
document.forms[0].elements.email.focus();
return false;
}
return true;
}
function isnameName() {
if (document.forms[0].elements.name.value == "") {
alert ("\n The Name field is blank. \n\nPlease enter your name Name.")
document.forms[0].elements.name.focus();
return false;
}
return true;
}
function isComments() {
if (document.forms[0].elements.comments.value == "") {
alert ("\n The Comments field is blank. \n\nPlease enter some Comments.")
document.forms[0].elements.comments.focus();
return false;
}
return true;
}
//-------------------


// End -->
