
menu_status = new Array(); 

function showHide(theid){

	if(document.getElementById(theid)){	
		var switch_id = document.getElementById(theid);

		if(menu_status[theid] != 'show') {
		   switch_id.className = 'show';
		   menu_status[theid] = 'show';
		}else{
		   switch_id.className = 'hide';
		   menu_status[theid] = 'hide';
		}
	}
}


function hs_id(hid,sid,xid,rootURL)
{ 
	if (hid >= 0)
	{ 

		var http = false;
		
		if(navigator.appName == "Microsoft Internet Explorer") {
		  http = new ActiveXObject("Microsoft.XMLHTTP");
		} else {
		  http = new XMLHttpRequest();
		}
		
		var url=rootURL+"?hid=" + hid + "&sid=" + sid + "&xid=" + xid;

		//http.open("GET", url , true);
		//Aanpassing HMH 2009-10-20: Probeer Ajax in Sync mode 
		http.open("GET", url , false);
		
		http.onreadystatechange=function() {}
		http.send(null);

	} 
	return true;
} 
