function Switch(obj) {

var obj=document.getElementsByName('menu_'+obj);
for(var i=0,j=obj.length;i<j;i+=1) {
    if (obj[i].style.display=="none") {
            obj[i].style.display="block";
    } else {
            obj[i].style.display="none";
    }
  }
}

function MM_showHideLayers() { 
  var i,p,v,obj,args=MM_showHideLayers.arguments;
    for (i=0; i<(args.length-2); i+=3)
      with (document) if (getElementById && ((obj=getElementById(args[i]))!=null)) { v=args[i+2];
          if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
	      obj.visibility=v; }
}
		  	
function getXMLHTTP() { //fuction to return the xml http object
	var xmlhttp=false;	
	    try{
	        xmlhttp=new XMLHttpRequest();
	    }
	    catch(e)	{		
	    	try{			
		xmlhttp= new ActiveXObject("Microsoft.XMLHTTP");
	    }
	    catch(e){
		try{
		xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
	    }
	    catch(e1){
	        xmlhttp=false;
	    }
	}
    }
return xmlhttp;
}

function getselect(strURL,selectname)
    {  
     var req = getXMLHTTP();
      if (req)
           {
             req.onreadystatechange = function()
	      {
    	        if (req.readyState == 4) { //data is retrieved from server
	        if (req.status == 200) { // which reprents ok status      
	            document.getElementById(selectname).innerHTML=req.responseText;
	      }
	    else
	      { 
	       alert("There was a problem while using XMLHTTP:\n");
	     }
	}            
    }        
     req.open("GET", '/php/_getselect.php'+strURL+'&time='+Math.random(), true); //open url using get method
     req.send(null);
  }
 }
														      
														      			 
