// AGENTNAV IE6 hover Javascript.  Nessisary for drop down menus in IE6. Uses the Suckerfish JavaScript methode.
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);

//clear form field
function clearfield(x) { x.value = "";}

//disable enter key
function disableEnterKey(e)
{
	var key;      
	if(window.event)
		key = window.event.keyCode; //IE
	else
		key = e.which; //firefox      
	return (key != 13);
}

//validate zipcode field
function isNotZipCode (zip) {
	if (zip == "" || zip.length != 5 || isNaN(zip))
		return true;
	else return false;
}


