// 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 (document.form.phone1_number.value == "") {
missinginfo += "\n     -  Phone number";
}
if (document.form.date1.value == "") {
missinginfo += "\n     -  Reservation date";
}
if (document.form.time1.value == "") {
missinginfo += "\n     -  Reservation Time";
}
if (document.form.partysize.value == "") {
missinginfo += "\n     -  Number of people";
}
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}
}

