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 = theform.ddlSearchType.selectedIndex; 
var sSearchType = theform.ddlSearchType.options[iIndex].value; 


// 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://filtrationcorpofamerica.thomasnet.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; 
} 

//alert (url); 
} 


URL = window.location.href; 
indexhtml = (URL.indexOf('index.') > -1); 
abouthtml = (URL.indexOf('about.') > -1); 
contacthtml = (URL.indexOf('contact.') > -1); 
rfqhtml = (URL.indexOf('request/all-categories') > -1); 
filter_applicationshtml = (URL.indexOf('filter_applications.') > -1); 
manufacturershtml = (URL.indexOf('manufacturers.') > -1); 
aviationfilterseparatorshtml = (URL.indexOf('aviation-filter-separators.') > -1); 
aviationcartridgeshtml = (URL.indexOf('aviation-cartridges.') > -1); 
filtervesselshtml = (URL.indexOf('filter-vessels.') > -1); 
ocvcontrolvalveshtml = (URL.indexOf('ocv-control-valves.') > -1); 
testingequipmenthtml = (URL.indexOf('testing-equipment.') > -1); 
aircraftnozzlerebuildinghtml = (URL.indexOf('aircraft-nozzle-rebuilding.') > -1); 




window.onload = function navigations(){ 
if (indexhtml) { 
var x=document.getElementById("home"); 
x.className = 'highlight_class'; 
} 

else if (abouthtml){ 
var x=document.getElementById("about"); 
x.className = 'highlight_class'; 
} 

else if (contacthtml){ 
var x=document.getElementById("contact"); 
x.className = 'highlight_class'; 
} 


else if (rfqhtml){ 
var x=document.getElementById("rfq"); 
x.className = 'highlight_class'; 
} 

else if (filter_applicationshtml){ 
var x=document.getElementById("filter_applications"); 
x.className = 'highlight_class'; 
} 

else if (manufacturershtml){ 
var x=document.getElementById("manufacturers"); 
x.className = 'highlight_class'; 
} 

else if (aviationfilterseparatorshtml){ 
var x=document.getElementById("aviation-filter-separators"); 
x.className = 'highlight_leftnav'; 
} 

else if (aviationcartridgeshtml){ 
var x=document.getElementById("aviation-cartridges"); 
x.className = 'highlight_leftnav'; 
} 

else if (filtervesselshtml){ 
var x=document.getElementById("filter-vessels"); 
x.className = 'highlight_leftnav'; 
} 

else if (ocvcontrolvalveshtml){ 
var x=document.getElementById("ocv-control-valves"); 
x.className = 'highlight_leftnav'; 
} 

else if (testingequipmenthtml){ 
var x=document.getElementById("testing-equipment"); 
x.className = 'highlight_leftnav'; 
} 

else if (aircraftnozzlerebuildinghtml){ 
var x=document.getElementById("aircraft-nozzle-rebuilding"); 
x.className = 'highlight_leftnav'; 
} 




} 

