



URL = window.location.href; 
indexhtml = (URL.indexOf('index.') > -1); 
abouthtml = (URL.indexOf('about.') > -1); 
rfqhtml = (URL.indexOf('rfq.') > -1); 
contacthtml = (URL.indexOf('contact.') > -1); 
why_buyhtml = (URL.indexOf('why_buy.') > -1); 
owners_manualshtml = (URL.indexOf('owners_manuals.') > -1); 
warrantyhtml = (URL.indexOf('warranty.') > -1); 
accessories_partshtml = (URL.indexOf('accessories_parts.') > -1); 
product_catalogshtml = (URL.indexOf('product_catalogs.') > -1); 
product_bulletinshtml = (URL.indexOf('product_bulletins.') > -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 (rfqhtml){ 
var x=document.getElementById("rfq"); 
x.className = 'highlight_class'; 
} 
else if (contacthtml){ 
var x=document.getElementById("contact"); 
x.className = 'highlight_class'; 
} 

else if (why_buyhtml){ 
var x=document.getElementById("why_buy"); 
x.className = 'highlight_class'; 
} 



else if (owners_manualshtml){ 
var x=document.getElementById("owners_manuals"); 
x.className = 'highlight_leftnav'; 
} 

else if (warrantyhtml){ 
var x=document.getElementById("warranty"); 
x.className = 'highlight_leftnav'; 
} 

else if (accessories_partshtml){ 
var x=document.getElementById("accessories_parts"); 
x.className = 'highlight_leftnav'; 
} 

else if (product_catalogshtml){ 
var x=document.getElementById("product_catalogs"); 
x.className = 'highlight_leftnav'; 
} 

else if (product_bulletinshtml){ 
var x=document.getElementById("product_bulletins"); 
x.className = 'highlight_leftnav'; 
} 




} 




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://carryontrailercorp.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; 
} 

} 
