//*** This function, triggered by clicking the Submit button, checks
//*** for, and rejects, blank values in the type of event, location, 
//*** contact name, address, city, state, zip, phone, and email fields.
function validateForm() {
	var errorTxt = ""
	
	
	if (document.getElementById("eventType").value == "") {
		errorTxt = errorTxt + "Type of Event \n";
	}
  
  
  	if (document.getElementById("emailTo").value == "") {
		errorTxt = errorTxt + "Rainforest Cafe Location \n";
	}
	
	
	if (document.getElementById("contact").value == "") {
		errorTxt = errorTxt + "Person to Contact \n";
	}


	if (document.getElementById("city").value == "") {
		errorTxt = errorTxt + "City \n";
	}
	
	
	if (document.getElementById("state").value == "") {
		errorTxt = errorTxt + "State \n";
	}
	
	
	if (document.getElementById("zip").value == "") {
		errorTxt = errorTxt + "Zip/Postal Code \n";
	}


	if (document.getElementById("phone").value == "") {
		errorTxt = errorTxt + "Phone \n";
	}
	
	
	if (document.getElementById("email").value == "") {
		errorTxt = errorTxt + "E-Mail \n";
	}

	//-- If all fields OK go ahead and submit the form and put up a message.
	if (errorTxt=="") {
		return true;
	} else {
		alert("The following fields cannot be blank. \n Please check them and resubmit the form: \n ---------------------------------------------------------- \n" + errorTxt);
		return false;
	}
}