<!--

function validate()
{
	theform=window.document.emailThisPage

	if ((theform.senderName.value.length < 2)) {
		alert("Please enter your name.")
		theform.senderName.focus();
		theform.senderName.select();
		return false;
	}
	
	if ((theform.senderEmail.value.length < 6)) {
		alert("Please fill in a valid email address.")
		theform.senderEmail.focus();
		theform.senderEmail.select();
		return false;
	}
	if (!validateEmail(theform.senderEmail.value)) {
		alert("Please fill in a valid email address.")
		theform.senderEmail.focus();
		theform.senderEmail.select();
		return false;
	}

	
	if ((theform.receiverEmail.value.length < 6)) {
		alert("Please fill in a valid email address.")
		theform.receiverEmail.focus();
		theform.receiverEmail.select();
		return false;
	}
	if (!validateEmail(theform.receiverEmail.value)) {
		alert("Please fill in a valid email address.")
		theform.receiverEmail.focus();
		theform.receiverEmail.select();
		return false;
	}
	
	return true;
}

		
function validateEmail(myEmail) {
	var re = /^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*\.(([0-9]{1,3})|([a-z]{2,3})|(aero|coop|info|museum|name))$/i;
	return re.test(myEmail);
}

//-->
