var xmlHttp
var section;

function showSection(str, id)
 { 
 xmlHttp=GetXmlHttpObject()
 if (xmlHttp==null)
  {
  alert ("Browser does not support HTTP Request")
  return
  } 
 section = str;
 var url="../classes/centerProcess.php"
 url=url+"?section="+str
 url=url+"&id="+id
 xmlHttp.onreadystatechange=stateChanged
 xmlHttp.open("GET",url,true)
 xmlHttp.send(null)
 }

function stateChanged() 
{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{
		 xmlDoc=xmlHttp.responseText;
		 document.getElementById("centerContent").innerHTML=  xmlDoc;
		 
		 if (section == "map")
		 {
		 	initMap();
	 	}
	 }
} 

function GetXmlHttpObject()
 { 
 var objXMLHttp=null
 if (window.XMLHttpRequest)
  {
  objXMLHttp=new XMLHttpRequest()
  }
 else if (window.ActiveXObject)
  {
  objXMLHttp=new ActiveXObject("Microsoft.XMLHTTP")
  }
 return objXMLHttp
 }