var shownDiv=null;

function ClearContent(pItem)
{
	if(pItem.value==pItem.defaultValue)
	{	
		pItem.value="";	
	}
}
	
function FillContent(pItem)
{
	if(pItem.value=="")
		pItem.value=pItem.defaultValue;
}

function printWindow(url)
{
	window.open(url+"?print=1",null,"top=0,left=0,height=500,width=840,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();
}

function addBookmark(title, url){ 
  if(window.sidebar){ // Firefox 
    window.sidebar.addPanel(title, url,''); 
  }else if(window.opera){ //Opera 
    var a = document.createElement("A"); 
    a.rel = "sidebar"; 
    a.target = "_search"; 
    a.title = title; 
    a.href = url; 
    a.click(); 
  } else if(document.all){ //IE 
    window.external.AddFavorite(url, title); 
  } 
} 

function toggle_visibility(id) {
   var e = document.getElementById(id);
   if(e.style.display == 'block')
      e.style.display = 'none';
   else
      e.style.display = 'block';
}