// JavaScript Document

// CHECKS FOR CORRECTLY FORMATTED EMAIL ADDRESS IN FORMS
// INCLUDED ON EVERY PAGE (from webpage.php)


	var testresults
	function checkemail(){
	var str=document.validation.email.value
	var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i
	if (filter.test(str))
	testresults=true
	else
	{
		alert("Please enter a valid email address.")
		testresults=false
	}
											
	return (testresults)
	}



	function checkbae()
	{
		if (document.layers||document.getElementById||document.all)
		return checkemail()
		else
		return true
	}
