<!--
function testYear(str) {

var yearExp= /^\d{4}$/;
if (!yearExp.test(str.value)) {
	alert("Year must contain 4 digits, e.g. 1990.");
	document.getElementById(str.name).focus();
}
}
function ValNumber(str) {

	if (event.keyCode < 48 || event.keyCode > 57) {
		alert("Please type a number between 1 and 10");
		document.getElementById(str.name).focus();
		event.returnValue=false;
		document.getElementById(str.name).focus();
		}
	}
	
	
function testBlank(str) {
var box=document.getElementById('' + str.name + '');
if (str.value.length==0) {
	box.value='**INVALID VALUE**';
	box.focus();
	box.select();
}
}
function testEmail(str) {
var emailexp=/^([\w-]+(?:\.[\w-']+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i
//var emailexp = /^[A-Z][A-Z_0-9.]+@[A-Z][A-Z_0-9.]+\.[A-Z]{3}$/i
var box=document.getElementById('' + str.name + '');
if (!emailexp.test(str.value)) {
	box.value='**INVALID E-MAIL**';
	box.focus();
	box.select();
	}
}
function finalcheck(form) {
var message='';
var emailexp=/^([\w-]+(?:\.[\w-']+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i

if (form.varName.value == '')  {

	message=message + "Name required.\n";
}

if (form.varAddress.value == '') {
	message=message + "Address required.\n";
}

if (form.varCityStateZip.value == '') {
	message=message + "City State Zip Required.\n";
	}
if ((form.varPhone.value == '')) {
	message=message + "Phone number required.\n";
	}

if (!emailexp.test(form.varemail.value)) {
	message=message + "Valid eMail Address Required.\n";

	}

//if (form.varemail.value=='') {
//	message=message + "eMail Address Required.\n";
//	}
if (form.varBody.value=='') {
	message=message + "Message Required.\n";
	}


if (message != '')
{
	alert(message);
	return false;
}
return true;
}


//-->