var testresults
function checkemail(){
	var str=document.theForm.emailaddress.value
	var filter=/^.+@.+\..{2,3}$/
	if (filter.test(str))
		testresults=true
	else{
		alert("Please input a valid email address!")
		theForm.emailaddress.focus();
		return(false)
		testresults=false
}
return (testresults)
}
function checkbae(){
	if (document.layers||document.all)
		return checkemail()
	else
		return true
}
