var contentHttp;

function contentLoaded() {
        if (contentHttp.readyState==4 || contentHttp.readyState=="complete")
         {
                 document.getElementById("extracontent").innerHTML=contentHttp.responseText;
         }

}

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 (e2)
                  {
                        xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
                  }
         }
        return xmlHttp;
}


function load_content(url) {
        contentHttp=GetXmlHttpObject();
        if (contentHttp===null)
         {
                 alert ("Browser does not support HTTP Request");
                 return;
         }

        url = url+"?&sid="+Math.random();

        contentHttp.onreadystatechange=contentLoaded;
        contentHttp.open("GET",url,true);
        contentHttp.send(null);

}
