function validator(emailSubForm) {

	// is name empty?
	if(emailSubForm.name.value == "") {
		// it is empty, so alert them and don't submit the form
		alert("Please enter your name");
		return false;
	}

	// is emailAddress empty?
	if(emailSubForm.emailAddress.value == "") {
		// it is empty, so alert them and don't submit the form
		alert("Please give us an email address");
		return false;
	}

	return true;
}

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);

function popupSized(url,width,height){
window.open(url,'_blank','toolbar=no,location=no,directories=no,status=no,scrollbars=yes,menubar=no,screenX=310,screenY=60,left=310,top=60,width=' + width + ',height=' + height);
}

