var topLevel = 100;
function toggleBox(szDivID, iState)
{
		
	if(document.layers)	   //NN4+
	{
		if(document.layers[szDivID].visibility == "visible")
		{
			document.layers[szDivID].visibility = "hidden";
		}
		else
		{
			document.layers[szDivID].zIndex = topLevel++;
			document.layers[szDivID].visibility = "visible"; 
		}

		}
		else if(document.getElementById)	  //gecko(NN6) + IE 5+
		{
		var obj = document.getElementById(szDivID);

		if(obj.style.visibility == "visible")
		{
			obj.style.visibility = "hidden";
		}
		else
		{
			obj.style.zIndex = topLevel++;
			obj.style.visibility = "visible";
		}

		}
		else if(document.all)	// IE 4
		{
			
		if(document.all[szDivID].style.visibility == "visible")
		{
			document.all[szDivID].style.visibility = "hidden";
		}
		else
		{
			document.all[szDivID].style.zIndex = topLevel++;
			document.all[szDivID].style.visibility = "visible"; 
		}
	}

	if(topLevel > 32000)
	{
		topLevel = 10;
	}
}


function onLine()
{
  window.frames["_ONLINE"].location.href='online.php';
}


function show_MENU()
{
  //find the height of the internal page
  var the_height=
    document.getElementById('_MENU').contentWindow.
      document.body.scrollHeight;

  //change the height of the iframe
  document.getElementById('_MENU').height=
      the_height;
}

function show_ONLINE()
{
  //find the height of the internal page
  var the_height=
    document.getElementById('_ONLINE').contentWindow.
      document.body.scrollHeight;

  //change the height of the iframe
  document.getElementById('_ONLINE').height=
      the_height;
}

function show_STATUS()
{
  //find the height of the internal page
  var the_height=
    document.getElementById('_STATUS').contentWindow.
      document.body.scrollHeight;

  //change the height of the iframe
  document.getElementById('_STATUS').height=
      the_height;
}