function ctlSearch_OnClick ()  
{  
var url;  
var theform = document.frmSearchBox;  
if (theform.keyword.value == "search catalog")  
{  
alert('Please enter at least two characters.');  
theform.keyword.focus();  
}  
else if (theform.keyword.value.length < 2)  
{  
alert('Please enter at least two characters.');  
theform.keyword.focus();  
}  
else  
{  
var iIndex = theform.ddlSearchType.selectedIndex;  
var sSearchType = theform.ddlSearchType.options[iIndex].value;  
url = "http://taapcorp.thomasnet-navigator.com/keyword/?&plpver=10&key=all&keycateg=100"  
url = url + "&SchType=" + sSearchType;  
url = url + "&keyword=" + encodeURI(theform.keyword.value);  
url = url + "&refer=" + encodeURI("http://" + document.location.hostname);  
document.location.href = url;  
}  
}  


function in1() {var key = document.getElementById("keyword");    key.value = "";} 
function out() {var key = document.getElementById("keyword");   if(key.value == "") {     key.value = "Search Catalog";   } }  