// Ensure fields are filled in
function checkFields() {
missinginfo = "";
if (document.form.firstname.value == "") {
missinginfo += "\n     -  First Name";
}
if (document.form.lastname.value == "") {
missinginfo += "\n     -  Last Name";
}
if ((document.form.email1.value == "") || 
(document.form.email1.value.indexOf('@') == -1) || 
(document.form.email1.value.indexOf('.') == -1)) {
missinginfo += "\n     -  Email address";
}
if (document.form.email1.value != document.form.email1check.value) {
missinginfo += "\n     -  The e-mail address has not been retyped properly";
}
if (missinginfo != "") {
missinginfo    ="__________________________            \n" +
"Ooops!\n You forgot to fill in the following:\n" +
missinginfo + "\n__________________________            " +
"\nPlease re-enter your information \nand submit again!";
alert(missinginfo);
return false;
}
else {return true}
}
