// JavaScript Document

<!--//--><![CDATA[//><!--
startList = function() {
if (document.all&&document.getElementById) {
navRoot = document.getElementById("nav");
for (i=0; i<navRoot.childNodes.length; i++) {
node = navRoot.childNodes[i];
if (node.nodeName=="LI") {
node.onmouseover=function() {
this.className+="over";
  }
  node.onmouseout=function() {
  this.className=this.className.replace("over", "");
   }
   }
  }
 }
}
window.onload=startList;

//--><!]]>

function closemsg ()
{
	document.getElementById('msg').style.visibility = 'hidden';	
}

function dialog(what,value)
{

	document.getElementById('msg').style.visibility = 'visible';
	var req = window.XMLHttpRequest ? new XMLHttpRequest() : new ActiveXObject("Microsoft.XMLHTTP");
	req.onreadystatechange = function() { 
		if(req.readyState == 4 && req.status == 200) {
			document.getElementById('msg').innerHTML = req.responseText;
	//		alert(target);
	//		alert(req.responseText);
		}
	}	
	req.open("POST", "/redirect.php");
	req.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
	req.send("action=getHtml&what=" + what + "&value=" + value);	
}

function showhide(Field)
{
	if (document.getElementById(Field).style.visibility == 'visible')
		{
			document.getElementById(Field).style.visibility = 'hidden';
			document.getElementById(Field).style.display = 'none';
		}
		else 
		{
			document.getElementById(Field).style.visibility = 'visible';
			document.getElementById(Field).style.display = 'block';
		}
}

function hidemenus()
{
	document.getElementById('stordiv').style.visibility = 'hidden';
	document.getElementById('submenu1').style.visibility = 'hidden';
	document.getElementById('msg').style.visibility = 'hidden';
	document.getElementById('submenu1').style.display = 'none';
}


