function ClearContent(pItem)
{
	if(pItem.value==pItem.defaultValue)
	{	
		pItem.value="";	
	}
}
	
function FillContent(pItem)
{
	if(pItem.value=="")
		pItem.value=pItem.defaultValue;
}

function printWindow()
{
	window.open(document.frmSearch.hdnprint.value+"?print=1",null,"top=0,left=0,height=500,width=635,status=yes,toolbar=no,scrollbars=yes,menubar=no,location=no");
}

function gopage(ppage,pstr)
{
	var doc = document.frmSearchResults;
	doc.SearchBox.value = pstr;
	doc.page.value = ppage;
	doc.action = "search_results.asp";
	doc.submit();
}

// Dynamic hide/showdivs
function showdiv(pdivid)
{
	var aDivs = document.body.getElementsByTagName("DIV");
	
	// first hide all divs (only required div's not all)
	for(var i=0 ; i< aDivs.length; i++)
	{
		if (aDivs[i].id.substring(0,4) == 'div_')
		{
			aDivs[i].style.display = 'none';
		}
	} 
	
	if (document.layers) 	//IS NETSCAPE 4 or below 
	{ 
		document.layers[pdivid].display = 'block'; 
	}
	else			//IS IE
	{
		// show the wanted one
		var showItem = document.getElementById(pdivid); 
		showItem.style.display = 'block'; 
	}
}

function showdefaultdiv()
{
	showdiv('div_0');
}