var xmlHttp;
function showContent(str)
 { 
 xmlHttp=GetXmlHttpObject();
 if (xmlHttp==null)
  {
  alert ("Browser does not support HTTP Request");
  return;
  } 
//   else { alert ("done "+str); }
var url="/includes/getPage.inc.php";
 url=url+"?q="+str;
 url=url+"&sid="+Math.random();
 xmlHttp.onreadystatechange=stateChanged;
 xmlHttp.open("GET",url,true);
 xmlHttp.send(null);
 }
function stateChanged() 
{ 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
{
 xmlDoc=xmlHttp.responseXML;
 document.getElementById("deData").innerHTML=
 xmlDoc.getElementsByTagName("deData")[0].childNodes[0].nodeValue;
 document.getElementById("dePage").innerHTML=
 xmlDoc.getElementsByTagName("dePage")[0].childNodes[0].nodeValue;
 document.getElementById("deHead").innerHTML=
 xmlDoc.getElementsByTagName("deHead")[0].childNodes[0].nodeValue;
 document.getElementById("deInline").innerHTML=
 xmlDoc.getElementsByTagName("deInline")[0].childNodes[0].nodeValue;
 }
} 
function GetXmlHttpObject()
 { 
 var objXMLHttp=null;
 if (window.XMLHttpRequest)
  {
  objXMLHttp=new XMLHttpRequest();
  }
 else if (window.ActiveXObject)
  {
  objXMLHttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
 return objXMLHttp;
 }
