
<!-- Hide from old browsers


	//********************************************************************************
	// Code to toggle the visibility of the dicovery block/panels
	//********************************************************************************

	var g_LastGetObject = null;

	//-------------------------------------------------------------------
	// function to get an objects reference from its name (supports new and old versions of IE and Netscape)
	function getObjectByID(objectName) {
		this.name = objectName;

		g_LastGetObject = objectName;

		// If document.getElementById exists (new Netscape/Explorer browsers), then
		if (document.getElementById) {
			this.objRef = document.getElementById(objectName);
  			this.style = document.getElementById(objectName).style;
		}
		// If document.all exists (old Explorer browsers)
		else if (document.all) {
			this.objRef = document.all[objectName];
			this.style = document.all[objectName].style;
		}
		// If document.layer exists (old Netscape)
		else if (document.layers) {
			this.objRef = document.layers[objectName];
   			this.style = document.layers[objectName];
		}

	}

	//-------------------------------------------------------------------
	// function to show the contents of a discovery group
	function show(layerName) {
		var divObj;
	
		divObj = new getObjectByID(layerName + "_1_open");
		divObj.style.display = "block";

		divObj = new getObjectByID(layerName + "_1_closed");
		divObj.style.display = "none";
		
		divObj = new getObjectByID(layerName + "_2_open");
		divObj.style.display = "block";
	}

	//-------------------------------------------------------------------
	// function to hide the contents of a discovery group
	function hide(layerName) {
		var divObj;
		
		divObj = new getObjectByID(layerName + "_1_open");
		divObj.style.display = "none";

		divObj = new getObjectByID(layerName + "_1_closed");
		divObj.style.display = "block";
		
		divObj = new getObjectByID(layerName + "_2_open");
		divObj.style.display = "none";
	}
	

	//-------------------------------------------------------------------
	// function to hide the contents of a discovery group
	function ShowAll(itemArray) {
		for(var i=0; i<itemArray.length; i++) 
		{
			show(itemArray[i]);
		}
	}
	

	//-------------------------------------------------------------------
	// function to hide the contents of a discovery group
	function HideAll(itemArray) {
		for(var i=0; i<itemArray.length; i++) 
		{
			hide(itemArray[i]);
		}
	}
	

	//********************************************************************************
	// Code to handlæe the calendar
	//********************************************************************************

	//-------------------------------------------------------------------
	// function to navigate to another month
	function gotoMonth(maaned, aar)
	{
		location.href = "?maaned=" + maaned + "&aar=" + aar;
	}
	
	//-------------------------------------------------------------------
	// function to show a pupop box with info on officials
	function showPopup(itemttype, id)
	{
		var url = "./popup.php?itemtype=" + itemttype + "&id=" + id;
	        window.open(url, '_blank', "height=200,width=300");
	}

//-->