<!-- emailCheck V1.1.3: Sandeep V. Tamhankar (stamhankar@hotmail.com) --><!-- Beginfunction EmailCheck (emailStr){	var checkTLD=1;	var knownDomsPat=/^(com|net|org|edu|int|mil|gov|arpa|biz|aero|name|coop|info|pro|museum)$/;	var emailPat=/^(.+)@(.+)$/;	var specialChars="\\(\\)><@,;:\\\\\\\"\\.\\[\\]";	var validChars="\[^\\s" + specialChars + "\]";	var quotedUser="(\"[^\"]*\")";	var ipDomainPat=/^\[(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})\]$/;	var atom=validChars + '+';	var word="(" + atom + "|" + quotedUser + ")";	var userPat=new RegExp("^" + word + "(\\." + word + ")*$");	var domainPat=new RegExp("^" + atom + "(\\." + atom +")*$");	var matchArray=emailStr.match(emailPat);	if( matchArray==null)		return false;	var user=matchArray[1];	var domain=matchArray[2];	for( i=0; i<user.length; i++)	{		if( user.charCodeAt(i)>127)			return false;	}		for( i=0; i<domain.length; i++)	{		if( domain.charCodeAt(i)>127)			return false;	}	if( user.match(userPat)==null)		return false;	var IPArray=domain.match(ipDomainPat);	if( IPArray!=null)	{		for( var i=1;i<=4;i++)		{			if( IPArray[i]>255)				return false;		}		return true;	} 	var atomPat=new RegExp("^" + atom + "$");	var domArr=domain.split(".");	var len=domArr.length;	for( i=0;i<len;i++)	{		if( domArr[i].search(atomPat)==-1)			return false;	}	if( checkTLD && domArr[domArr.length-1].length!=2 && 		domArr[domArr.length-1].search(knownDomsPat)==-1)	{		return false;	}	if( len<2)		return false;	return true;}function ValidateEmail(theField){	if( theField.value == "")	{		alert("Please enter your e-mail.");		theField.focus();		return false;	}	if( ! EmailCheck(theField.value) )	{		 alert("The e-mail address you entered is not valid.");		 theField.focus();		 return false;	}	return true;}function PreProcess(theForm){	var elementsArr = theForm.elements;	for(var i = 0; i < elementsArr.length; i++)	{		if(elementsArr[i].name == "email")		{			if( ! ValidateEmail(elementsArr[i]) )			{				return false;			}			break;		}	}		return AskQuestion(theForm);}function AskQuestion(theForm){	var a = Math.round(4*Math.random()) + 1;	var b = Math.round(4*Math.random()) + 1;	var theReply = prompt("Security Question\nIn order to keep spammers away we need to validate that you are a real human.\nSo we need to ask you a very tough question which requires a great deal of human intelligence.\nHow much is " + a + " + " + b + "?");	if(theReply == (a+b))		return true;	else if(theReply == null)		return false;		alert("\"" + theReply + "\" is not a correct answer.\nIf you can't answer that question, we can't answer your e-mail.");	return false;}// End -->