function GetXmlHttpObject()
{
  var xmlHttp=null;
  try
    {
    // Firefox, Opera 8.0+, Safari
    xmlHttp=new XMLHttpRequest();
    }
  catch (e)
    {
    // Internet Explorer
    try
      {
      xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
      }
    catch (e)
      {
      xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
      }
    }
  return xmlHttp;
}

function getXML(page){
    xmlHttp = GetXmlHttpObject();
    if (xmlHttp==null)
    {
      alert ("Your browser does not support AJAX!");
      return;
    }
	xmlHttp.open("GET",page,false);	
	xmlHttp.send(null);	       
	return (xmlHttp.responseText);
}

/*
//Process XML with onchange event
var data;
function getData()
{	
	if(xmlHttp.readyState==4)
	{
		data = xmlHttp.responseText;
		return data;
	}		
}
*/

function show_object(obj_name){
    
    var cur_obj = document.getElementById(obj_name);
    if(cur_obj.style.display == "none"){
        cur_obj.style.display = '';
    }
    else {
        cur_obj.style.display = 'none';
    }
}