function reset_check()  
{  
if(document.getElementById('Other'))  
{  
if(document.getElementById('Other').checked = true)  
{  
document.getElementById('Other').checked = false;  
document.EmailEveryThingForm.Other_problems_or_notes.value = '';  
}  
}  
}  

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.value;  
var sSearchType = theform.ddlSearchType.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://bergentool.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;  
}  
//alert (url);  
}  


function valid_check()  
{  
if (document.EmailEveryThingForm.Cord.checked || document.EmailEveryThingForm.Switch.checked || document.EmailEveryThingForm.Switch.checked || document.EmailEveryThingForm.Brushes.checked || document.EmailEveryThingForm.Chuck.checked || document.EmailEveryThingForm.No_power.checked || document.EmailEveryThingForm.Gears.checked || document.EmailEveryThingForm.Battery.checked || document.EmailEveryThingForm.Charger.checked || document.EmailEveryThingForm.Other.checked)  
{  
if(document.EmailEveryThingForm.Other.checked)  
{  
if(document.EmailEveryThingForm.Other_problems_or_notes.value=='')  
{  
document.EmailEveryThingForm.Other_problems_or_notes.focus();  
alert("Please specify other problems or notes");  
}  
else  
{  
document.EmailEveryThingForm.submit();  
}  
}  
else  
{  
document.EmailEveryThingForm.submit();  
}  
}  
else  
{  
alert("Please specify What kind of problem are you having with the tool");  
}  

}  

function other_option()  
{  
if (document.EmailEveryThingForm.Other.checked)  
{  
other_problem.style.display='';  
}  
else  
{  
other_problem.style.display='none';  
}  
}  