function GetXmlHttpObject()
	 {  
		 var objXMLHttp=null
		 if (window.XMLHttpRequest)
		  {
		  objXMLHttp=new XMLHttpRequest()
		  }
		 else if (window.ActiveXObject)
		  {
		  objXMLHttp=new ActiveXObject("Microsoft.XMLHTTP")
		  }
		 return objXMLHttp
	 }

function ShowDataAjax(url,idAjaxSection)
	{ 
		xmlHttp=GetXmlHttpObject()
		if (xmlHttp==null){
			alert ("Browser does not support HTTP Request")
			return false
		} 
		
		url=url+"&sid="+Math.random();
		//alert (url);
		 
		xmlHttp.onreadystatechange=function () {
			if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
			{	
				 xmlDoc			= xmlHttp.responseText;
				 //alert (xmlDoc) ;
				 document.getElementById(idAjaxSection).innerHTML = xmlDoc;    
			}
		} 
		
		xmlHttp.open("GET",url,true)
		xmlHttp.send(null)
	}

function GotoContentAjax (idContent,innerHTMLId){
	
	xmlHttp=GetXmlHttpObject()
		if (xmlHttp==null){
			alert ("Browser does not support HTTP Request")
			return
		} 
	 
		url="function/ajaxSectionGeneratorGlobal.php?command=GotoContentAjax("+idContent+","+innerHTMLId.id+");"+"&sid="+Math.random();
		 
		xmlHttp.onreadystatechange=function () {
			if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
			{	
				 xmlDoc			= xmlHttp.responseText;
				 //alert (xmlDoc) ;
				 innerHTMLId.innerHTML = xmlDoc;    
			}
		} 
		
		
		
		xmlHttp.open("GET",url,true)
		xmlHttp.send(null)
}
