function popurl(url, w, h)
{
	if (w==0)
	{
	  w = 400; //default width
	}
	sealWin=window.open(url,"win",'toolbar=0,location=0,directories=0,status=1,menubar=1,scrollbars=1,resizable=1,width='+ w + ',height=' + h +'');
	self.name = "mainWin";
	sealWin.focus();
}

function bookmark(address,sitename) {
	if (window.sidebar) {
		window.sidebar.addPanel(sitename, address,"");
	} else if( document.all ) {
		window.external.AddFavorite(address, sitename);
	} else if( window.opera && window.print ) {
		return true;
	}
}
function showdiv(num)
{ 
 var theLayer = "hideshow"+num;

 if(document.getElementById(theLayer).style.display=="none" || document.theLayer.display=="none" || document.all.theLayer.style.display=="none")
		{
		  status = "block";
	  }
 else
	  {
	  status="none";
	  }
if (document.getElementById)
	 { // DOM3 = IE5, NS6 
     document.getElementById(theLayer).style.display = status; 
   } 
else
	 { 
    if (document.layers)
  		  { // Netscape 4 
          document.theLayer.display = status; 
         } 
    else
			  { // IE 4 
          document.all.theLayer.style.display = status; 
        } 
   } 
for (var i=1; i<31; i++)
	{
		var otherLayers = "hideshow"+i;
		if(document.getElementById && otherLayers != theLayer && document.getElementById(otherLayers).style.display=="block")
		{
		document.getElementById(otherLayers).style.display = 'none';
		}
		else
		{
		   if(document.layers && otherLayers != theLayer && document.otherLayers.display == "block")
			 {
		    document.otherLayers.display = 'none';
		   }
		}
	}
} 
