var xmlHttp

function loadHeader()
{
   xmlHttp=GetXmlHttpObject()
    if (xmlHttp==null)
    {
     alert ("Browser does not support HTTP Request")
     return
    }
    var url="head.html"

    xmlHttp.onreadystatechange=getDataHeader;
    xmlHttp.open("GET",url,true)
    xmlHttp.send(null)

    return
}

function getDataHeader()
{
    if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
    {
      document.getElementById("entete").innerHTML=xmlHttp.responseText
    }
}

function GetXmlHttpObject()
{
  var objXMLHttp=null
    if (window.XMLHttpRequest)
    {
      objXMLHttp=new XMLHttpRequest()
    }
    else if (window.ActiveXObject)
    {
      objXMLHttp=new ActiveXObject("Microsoft.XMLHTTP")
    }
  return objXMLHttp
}
