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 ctlSearch_OnClick ()
{
 var url;
 var theform = document.frmSearchBox;
 
 if (theform.keyword.value.length < 2)
 {
  alert('Please enter at least two characters.');
  theform.keyword.focus();
 }
 else
 {
	var iIndex = 2;
	var sSearchType = 2;

  
// Version 2.7 release
// 1. using default Domain, like "orientalmotor.thomasnet.com" in our sample 
// 2. using root category shortName, like "all-categories" in our sample
  url = "http://kmsinc.thomasnet.com/keyword/all-categories?"
  url = url + "&SchType=" + sSearchType;
  url = url + "&keyword=" + encodeURI(theform.keyword.value);
  url = url + "&refer=" + encodeURI(document.location.href);
   
  document.location.href = url;
 }

//alert (url);				
}
