var isIE = true;

function initialiseAJAXRequest()
{
    if (window.XMLHttpRequest)
    {
        isIE = false;
        return new XMLHttpRequest();
    }
    else if (window.ActiveXObject)
    {
        isIE = true;
        return new ActiveXObject("Microsoft.XMLHTTP");
    }
}
/**
 * This function is required to counter IE caching AJAX GET
 * XMLHttpRequests.
 *
 * By adding the current system date/time to the URL Querystring, 
 * IE treats the request as a new one (wtg IE).
 */
function uncacheurl(strURL)
{
    var dteDate = new Date();

    var strTime = dteDate.getTime();

    return strURL + ((strURL.indexOf(".jsp?") != -1) ? "&" : "?") + "time=" + strTime;
}