
<!--

var sfHover;

sfHover = function() {
	var sfEls = document.getElementById("ulMenu").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
<!--if (window.attachEvent) window.attachEvent("onload", sfHover);-->
if (document.all&&document.getElementById) window.onload=sfHover;


function checkscript()
{
		
		if (document.oFormContactUs.email.value == '' )
		{
			alert('Please enter your email address');
			return false;
		}else if (document.oFormContactUs.name.value == '' )
		{
			alert('Please enter your name');
			return false;
		}else if (document.oFormContactUs.email.value != '' )
		{
			return CyJS_Utils_IsEmailValidcf (document.oFormContactUs.email.value);
		} 
}

function CyJS_Utils_IsEmailValidcf(checkThisEmail)
{
	var myEMailIsValid = true;
	var myAtSymbolAt = checkThisEmail.indexOf('@');
	var myLastDotAt = checkThisEmail.lastIndexOf('.');
	var mySpaceAt = checkThisEmail.indexOf(' ');
	var myLength = checkThisEmail.length;


	// at least one @ must be present and not before position 2
	// @yellow.com : NOT valid
	// x@yellow.com : VALID

	if (myAtSymbolAt < 1 )
 		{myEMailIsValid = false}


	// at least one . (dot) afer the @ is required
	// x@yellow : NOT valid
	// x.y@yellow : NOT valid
	// x@yellow.org : VALID

	if (myLastDotAt < myAtSymbolAt)
	 {myEMailIsValid = false}

	// at least two characters [com, uk, fr, ...] must occur after the last . (dot)
	// x.y@yellow. : NOT valid
	// x.y@yellow.a : NOT valid
	// x.y@yellow.ca : VALID

	if (myLength - myLastDotAt <= 2)
	 {myEMailIsValid = false}


	// no empty space " " is permitted (one may trim the email)
	// x.y@yell ow.com : NOT valid

	if (mySpaceAt != -1)
	 {myEMailIsValid = false}


	if (myEMailIsValid == true)
	 {
		
		return true
			 
	}
	else
	 {alert("Please check that your email address is entered correctly")
	 return false;}

}


function checkscriptinfo()
{
		
		if (document.getElementById('email').value == '' )
		{
			alert('Please enter THEIR email address');
			return false;
		}else if (document.getElementById('name').value == '' )
		{
			alert('Please enter THEIR name');
			return false;
		}else if (document.getElementById('yemail').value == '' )
		{
			alert('Please enter YOUR email address');
			return false;
		}else if (document.getElementById('name').value == '' )
		{
			alert('Please enter YOUR name');
			return false;
		}else{
				return true;
		}
}