function createRequestObject() {
    if (window.XMLHttpRequest) {
        try {
            return new XMLHttpRequest();
        } catch (e){}
    } else if (window.ActiveXObject) {
        try {
            return new ActiveXObject('Msxml2.XMLHTTP');
        } catch (e){
          try {
              return new ActiveXObject('Microsoft.XMLHTTP');
          } catch (e){}
        }
    }
    return null;
}

function processResponse(text) {
    var name = "ajaxEnabled";
    var value = "true";
    var path="/";
    document.cookie = name + " = " + value + "; path = " + path + ";";
}

var xmlhttp = createRequestObject();
xmlhttp.open('GET', '/eservice/content/img/confirm.gif', true);
xmlhttp.onreadystatechange= function() {
    if (xmlhttp.readyState==4) {
        if (xmlhttp.status==200) {
            processResponse(xmlhttp.responseText);
        }
    }
}

xmlhttp.send(null);
