// JavaScript Document
function checkEmail(){
		
	var reEmail = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,8})+$/
	var formEmail = document.getElementById('Email').value;
	
	if(!reEmail.test(formEmail)){
		alert("Sorry! Your email address looks to be invalid. Please check the address and submit again");
		return false;
	}
	
	if(document.getElementById('noSpam').value==="I Hate SPAM") {
		alert("true");
		return true;
	} else {
		alert("Sorry! You must enter the text \"I Hate SPAM\" (case sensitive, without the quotes)");
		return false;
	}
}