function checkKey(id,type)
{
	if (id==13)
	{
		doSearch(type);
		
	}
	
}

function MM_openBrWindow(theURL,winName,features) {
			window.open(theURL,winName,features);
			return false;
		
		}

function showSiteMap()
{
	
	MM_openBrWindow('siteMap.php','','resizable=no,scrollbars=yes,width=750,height=800');
}

getMainDivStyle("");

function changeCategory(category)
{
	
	if (checkChange())
	{
		document.location.href='showPage.php?CAT='+category;
		
	}
}

function printablePage()
{
	
	
	var address = location.href;
	
	
	var searchTerms = document.main.searchTerms;
	
	if (searchTerms==null)
		searchTerms = "";
	else
		searchTerms = searchTerms.value;
	
	
	if (address.indexOf("?")==-1)
		address = address+"?PRINT=1&amp;search="+searchTerms;
	else
		address = address+"&amp;PRINT=1&amp;search="+searchTerms;
		
	window.open(address);
	
}
function doSearch(mainSearchFlag)
{
	if (mainSearchFlag==1)
		document.main.search.value = document.main.mainSearch.value;
	
	document.main.action="showPage.php";
	document.main.submit();
}

function doSearch2()
{
	alert("HI");
	
	document.main.action="showPage.php";
	document.main.submit();
}


function checkChange()
{
	//Placeholder for equivalent maintain function - needed to make menu.xsl work.
	return 1;
}