
	function check_email()
	{
	var EmailOk  = true
	var Temp     = document.contact_form.sEmail
	var AtSym    = Temp.value.indexOf('@')
	var Period   = Temp.value.lastIndexOf('.')
	var Space    = Temp.value.indexOf(' ')
	var Length   = Temp.value.length - 1
		if (Temp.value == "")
		{
			 return EmailOk
		}
			if ((AtSym < 1) ||
	    		(Period <= AtSym+1) ||
	    		(Period == Length ) ||
	    		(Space  != -1))
	   		{  
	     		 EmailOk = false
	     	 	alert('    Hmmm...\nThere seems to be a problem with you email address.\nMaybe you left out the @-thingy or something.\nWould you take a look at it please?')
	     	 	Temp.focus()
	   	}
	return EmailOk
	}
	
/****************************************************
 AntiSpambotMailto() - Documentation and encoder at:
    http://www.kenric.com/AntiSpambotMailto.html
****************************************************/
function AntiSpambotMailto(codelist, description, atagattr) {
	var thiscode, thischar;
	var CodeString = new String(codelist);
	var CodedArray = CodeString.split('|');
	var L = CodedArray.length;
	var AddrDecoded = "";
	for (var x=0; x < L; x++) {
		thiscode = CodedArray[x];
		thischar = String.fromCharCode( thiscode - L );
		AddrDecoded += thischar;
	}
	atagattr = atagattr ? ' ' + atagattr : '';
	if (!description) description = AddrDecoded; // if no description supplied, display email address
	var strOutput = '<a href="mailto:'+AddrDecoded+'"' + atagattr+'>' + description + '</a>';
	document.write(strOutput);
}