var testresults

function checkEmail(theForm){
if (document.layers||document.getElementById||document.all){
	var str=theForm.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("Skriv venligst din rigtige e-mail adresse!")
		testresults=false
	}
	return (testresults)
}else{
return true
}
}
