// JavaScript Document
function checkFields() {
missinginfo = "";

if(document.form.comments.value == "") {
missinginfo += "\n     -  Comments";
}

if ((document.form.email.value == "") || 
(document.form.email.value.indexOf('@') == -1) || 
(document.form.email.value.indexOf('.') == -1)) {
missinginfo += "\n     -  Email";
}


if (missinginfo != "") {
missinginfo ="_____________________________\n" +
"You failed to correctly fill in:\n" +
missinginfo + "\n_____________________________" +
"\nPlease re-enter and submit again!";
alert(missinginfo);
return false;
}
else return true;
}

