// JavaScript Document
function createXhrObject()
{
    if (window.XMLHttpRequest)
        return new XMLHttpRequest();
 
    if (window.ActiveXObject)
    {
        var names = [
            "Msxml2.XMLHTTP.6.0",
            "Msxml2.XMLHTTP.3.0",
            "Msxml2.XMLHTTP",
            "Microsoft.XMLHTTP"
        ];
        for(var i in names)
        {
            try{ return new ActiveXObject(names[i]); }
            catch(e){}
        }
    }
    return null; // non supporté
}
function connectURL(url)
{

objXHR = createXhrObject();
if (objXHR==null) return false;

objXHR.open("GET",url,false);
objXHR.send(null);

if (objXHR.readyState == 4)
return objXHR.responseText;
else
return false;
}
