<!-- comment sheet form validation script -->

 function trim(inStr) {

	var i =0;
	var s=inStr;
	var sOut= "";
	for (i =0; i<s.length; i++) {
		if (s.substr(i, 1) != " " )
			sOut = sOut + s.substr(i, 1);
	}
	
	return sOut;
 }

 function checkData() {
 
 
	if (trim(document.form1.name.value) == "") {
		alert("Please enter your name.");
		document.form1.name.focus();
		return false;
	}
	
	
//	if (trim(document.form1.address.value) == "") {
//		alert("Please enter your address.");
//		document.form1.address.focus();
//		return false;
//	}
	
//	if (trim(document.form1.city.value) == "") {
//		alert("Please enter your city.");
//		document.form1.city.focus();
//		return false;
//	}
	
//	if (trim(document.form1.state.value) == "") {
//		alert("Please enter your state.");
//		document.form1.state.focus();
//		return false;
//	}
	
//	if (trim(document.form1.zip.value) == "") {
//		alert("Please enter your zip code.");
//		document.form1.zip.focus();
//		return false;
//	}
	
//	if (trim(document.form1.neighborhood.value) == "") {
//		alert("Please choose your neighborhood.");
//		document.form1.neighborhood.focus();
//		return false;
//	}

	var sEmail;
	sEmail = trim(document.form1.Email.value);
	
	if (sEmail == "") {
		alert("Please enter your email address.");
		document.form1.Email.focus();
		return false;
	}
	
	if (sEmail.indexOf("@") == -1) {
		alert("Your forgot the @ symbol in your email address.");
		document.form1.Email.focus();
		return false;
	}
	
	if (sEmail.indexOf(".") == -1) {
		alert("Your forgot the . symbol in your email address.");
		document.form1.Email.focus();
		return false;
	}


if (trim(document.form1.message.value) == "") {
		alert("Please enter your message.");
		document.form1.message.focus();
		return false;
	}

	return true;
 }