// Source: www.quirksmode.org
// Purpose: You can use this function to gain access to the HTML element you want to influence.
//          It will pass you the HTML element you asked for, regardless of browser DOM. Of course,
//          the element must have a proper ID and, if your script must work in Netscape 4, should have a position defined in the style sheet.
// Returns: The object with properties 
//            .obj giving access to the actual HTML element. You have to use this property to read out or set anything else than styles. 
//            .style giving access to the styles of the HTML element. You have to use this property to read out or set the styles of the element. 
// Example: var x = new getObj('layername');
//
function getObj(name)
{
  if (document.getElementById)
  {
  	this.obj = document.getElementById(name);
	this.style = document.getElementById(name).style;
  }
  else if (document.all)
  {
	this.obj = document.all[name];
	this.style = document.all[name].style;
  }
  else if (document.layers)
  {
   	this.obj = document.layers[name];
   	this.style = document.layers[name];
  }
}


function HideElement(layername) {
	newe = new getObj(layername);
	newe.style.visibility = 'hidden';	
}

function CollapseElement(layername) {
	newe = new getObj(layername);
	newe.style.display = 'none';		
}

function UncollapseElement(layername) {
	newe = new getObj(layername);
	newe.style.display = 'inline';		
}

function ShowElement(layername) {
	newe = new getObj(layername);
	newe.style.visibility = 'visible';
}