function toggleLayer(whichLayer)
{
if (document.getElementById)
{
// this is the way the standards work
var style2 = document.getElementById(whichLayer).style;
style2.display = style2.display? "":"block";
}
else if (document.all)
{
// this is the way old msie versions work
var style2 = document.all[whichLayer].style;
style2.display = style2.display? "":"block";
}
else if (document.layers)
{
// this is the way nn4 works
var style2 = document.layers[whichLayer].style;
style2.display = style2.display? "":"block";
}
}
window.name="Main";
function searchSite(){
	/**
	The user can search for a 4 digit heading and text within the
	Commodity Code descriptions. If the text control is empty then halt 
	processing. If the value entered is 4 characters and numeric then a 
	heading search will be run. Any other text will cause a text 
	search to be run.
	**/	
	
	var searchFor = window.document.frmsearchsite.txtFind.value;

	if (searchFor==""){
		alert("You must enter something to search for!");
		window.document.frmsearchsite.txtFind.focus();
		//don't submit the form
		return false;
	}

	//Search main site search
	window.document.frmsearchsite.action="index.cfm?task=searchmainsite";
	//DescriptionResult.asp expects the heading to passed in a control 
	//named txtCriteria. Transfer value in txtFind to txtCriteria.
	window.document.frmsearchsite.txtCriteria.value = searchFor
	//submit the form
	window.document.frmsearchsite.submit()

}
function openWin( windowURL, windowName, windowFeatures ) { 
	return window.open( windowURL, windowName, windowFeatures ) ; 
} 