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



// Hide Email Addresses from Harvesters
function hideaddy(em1, em2) {
if (em1 && em2) {
document.write('<a href=\"mailto:' + em1 + '@' + em2 +'.com\">' + em1 + '@' + em2 + '.com</a>');
} else {
document.write(' -- No email address supplied -- ');
}
}

// Hide Link
function hidelinktext() {
document.write('e' + 'justice');
}


// Check for form errors
    function checkForm(){
                 theform=document.contact

                     // Check that the form has a full name specified in the field called "Name"
                 if (theform.Name.value==""){ 
                     alert("Please provide your name.")
                     theform.Name.focus()
                     return false;
                }
                 if (theform.Email.value==""){ 
                     alert("Please provide your Email Address.")
                     theform.Email.focus()
                     return false;
                
                }
                return true;
                }



