//<!--
var httpObject = null;

//Get the HTTP Object
function getHTTPObject(){ 
    var xmlHttp = null;
    try{
        // Firefox, Opera 8.0+, Safari
        xmlHttp = new XMLHttpRequest();
    }catch(e){
        // Internet Explorer
        try{
            xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
        }catch (e){
            xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
        }
    }
    return xmlHttp;
}

// Implement business logic    
function getAJAXContent(url, divID){
    httpObject = getHTTPObject();
    if (httpObject != null){
        httpObject.open("POST", url, true);
        httpObject.send(null);
        httpObject.onreadystatechange = function(){
            if(httpObject.readyState == 4){
                document.getElementById(divID).innerHTML = httpObject.responseText;
            }
        }
    } 
}
function getAJAXContentV2(objHTTP, url, divID){ 
    //if(url.length > 6000){AJAXerror(1); return false;}
    if (objHTTP != null){
        objHTTP.open("POST", url, true);
        objHTTP.send(null);
        objHTTP.onreadystatechange = function(){
            if(objHTTP.readyState == 4){
                document.getElementById(divID).innerHTML = objHTTP.responseText;
            }
        }
    }
}
//-->