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://
<!--
 /* Font Definitions */
 @font-face
	{font-family:"Cambria Math";
	panose-1:2 4 5 3 5 4 6 3 2 4;
	mso-font-charset:1;
	mso-generic-font-family:roman;
	mso-font-format:other;
	mso-font-pitch:variable;
	mso-font-signature:0 0 0 0 0 0;}
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;
	mso-font-charset:0;
	mso-generic-font-family:swiss;
	mso-font-pitch:variable;
	mso-font-signature:-1610611985 1073750139 0 0 159 0;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{mso-style-unhide:no;
	mso-style-qformat:yes;
	mso-style-parent:"";
	margin:0in;
	margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:11.0pt;
	font-family:"Calibri","sans-serif";
	mso-fareast-font-family:Calibri;
	mso-fareast-theme-font:minor-latin;
	mso-bidi-font-family:"Times New Roman";}
.MsoChpDefault
	{mso-style-type:export-only;
	mso-default-props:yes;
	font-size:10.0pt;
	mso-ansi-font-size:10.0pt;
	mso-bidi-font-size:10.0pt;}
@page WordSection1
	{size:8.5in 11.0in;
	margin:1.0in 1.0in 1.0in 1.0in;
	mso-header-margin:.5in;
	mso-footer-margin:.5in;
	mso-paper-source:0;}
div.WordSection1
	{page:WordSection1;}
-->
fasteners.contmidgroup.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);      
}    
