// <!--
// Requires oldFormCheckLib.js
// This script brought to you by ORNGE.ORG
// with help from webmonkey.com (for funcs in oldFormCheckLib.js)

// Form Information

// Required Fields:
// Text Name		Real Name			Type (real)
// ---------		---------			-----------
// First Name		required-firstname	text
// Last Name		required-lastname		text
// Address			required-address		text
// City			required-city		text
// State			required-state		text
// Zip			required-zip		zip (text)
// Message			textfield			text

function CheckContactForm()
{
	// Initialize vars
	var ValidForm = true;
	var errorStart = "Please address the following and resubmit: \n";
	var errorStr = "";

	// E-mail
	errorStr += (IsEmailValid ("reserveForm","E-mail"));  

	// If ErrorStr isn't still blank
	if ( errorStr != "" )
	{
		// Display the error string
		// alert("Something didn't work!");
		alert (errorStr);
	}
	else
	{
		window.open('blank.html','formTarget','width=300,height=100');
		document.reserveForm.submit();
	}
}

// -->

