﻿function validate() {

if (document.getElementById("guestbook").first_name.value=="") {
window.alert("First Name can not be blank"); return false; }
if (document.getElementById("guestbook").last_name.value=="") {
window.alert("Last Name can not be blank"); return false; }
if (document.getElementById("guestbook").address.value=="") {
window.alert("Street Address can not be blank"); return false; }
if (document.getElementById("guestbook").city.value=="") {
window.alert("City can not be blank"); return false; }
if (document.getElementById("guestbook").state.value=="") {
window.alert("State can not be blank"); return false; }
if (document.getElementById("guestbook").country.value=="") {
window.alert("Country can not be blank."); return false; }
if (document.getElementById("guestbook").zip.value=="") {
window.alert("Please enter your zip or postal code."); return false; }
if (document.getElementById("guestbook").email.value=="") {
window.alert("Email can not be blank"); return false; }
if ((document.getElementById("guestbook").bmonth.value=="") || (document.getElementById("guestbook").bday.value=="") || (document.getElementById("guestbook").byear.value=="")) {
window.alert("There is an error in your birthdate."); return false; }

}

