<!--

sfHover = function() {
	var sfEls = document.getElementById("main-nav").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);

function contactUs() {
	// show form in a window if the Div exists otherwise show contact page
	var fraObj = document.getElementById('fraScrollingPopup');
	if (fraObj==null) {
		window.location='/contact_us.htm';
		} else {
		showScrollablePopup('/contact_us_form.htm');
		}
}

function checkemail(){
  var cem = document.getElementById("CustomerEmail");
  var str=cem.value;
  var filter=/^.+@.+\..{2,3}$/

  if (str && filter.test(str))
    result=true
  else {
    window.alert("Your email address doesn't seem to be valid, please correct it")
    cem.focus();
    result=false
}
  return (result)
}

function validateForm() {
	var cn = document.getElementById("CustomerName");
	var ret= true;
	if (cn.value=='') {
		window.alert("Please enter your name in the Customer Name input box so that we may contact you");
		cn.focus();
	    ret = false;
		}
		
	var cn = document.getElementById("CustomerPhone");
	var ret= true;
	if (cn.value=='') {
		window.alert("Please enter your telephone no in the Customer Telephone input box so that we may contact you");
		cn.focus();
	    ret = false;
		}

	if (ret) ret = checkemail();
	
	return ret;
}

function submitform(frm) {
	frm.submit();
}

function toggleImg(x){
x.src = (x.src== 'images/LearnMoreBluBtn.gif')?'images/ShrinkBluBtn.gif':'images/LearnMoreBluBtn.gif';
}


-->