// JavaScript Document
function rm_validateForm(theForm){
		var x = theForm.email.value;

		var regExp=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i

		if (regExp.test(x)){
			return true;
		}else{
			alert("Please input a valid email address!");
			return false;
		}
		
	}
function validate_form ( )
{
    valid = true;

    if (( document.contact_form.custname.value == "" ) || ( document.contact_form.phone.value == "" ) || ( document.contact_form.email1.value == "" ))
    {
        alert ( "Please fill in all mandatory fileds marked with '*'." );
        valid = false;
    }

	if (valid)
	{
		var x = contact_form.email1.value;

		var regExp=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i

		if (regExp.test(x)){
			return true;
		}else{
			alert("Please input a valid email address!");
			valid = false;
		}
	}
	
    return valid;
}

startList = function() {
// Required update: if the page has no primary nav, don't do anything, don't give an error.
  if (document.all&&document.getElementById) {
    navRoot = document.getElementById("menunav");
    if (navRoot) {
      for (i=0; i<navRoot.childNodes.length; i++) {
        node = navRoot.childNodes[i];
        if (node.nodeName=="LI") {
          node.onmouseover=function() {
            this.className+=" over";
          }
          node.onmouseout=function() {
            this.className=this.className.replace(" over", "");
          }
} } } } }



execOnLoad = function() {
 startList();

}



window.onload=execOnLoad;