var postContentType="application/x-www-form-urlencoded";
function createAJAXRequestor(){
    try{
        return new XMLHttpRequest()
    }catch(a){
        try{
            return new ActiveXObject("Msxml2.XMLHTTP")
        }catch(a){
            try{return new ActiveXObject("Microsoft.XMLHTTP")
            }catch(a){
                return null
            }
        }
    }
}

function sendAJAXRequest(d,e,b,c,a){
    if((d==undefined)||(d==null)){return}
    d.onreadystatechange=a;d.open(e,b);
    d.onreadystatechange=a;
    if(c!=null){
        d.setRequestHeader("Content-Type",postContentType);
        d.setRequestHeader("Content-Length",c.length)}d.send(c)
}

function callAJAXRequest(c,d,a,b){
    if((c==undefined)||(c==null)){return}
    c.open(d,a,false);
    if(b!=null){
        c.setRequestHeader("Content-Type",postContentType);
        c.setRequestHeader("Content-Length",b.length)}c.send(b)
}

function showAJAXResponse(b,d,a){
    if((b.readyState==4)&&(b.status==200)){
        var c=b.responseText;
        if((a==undefined)||(a==null)||(c.search(a)>=0)){
            document.getElementById(d).innerHTML=c
        }
    }
}

function passAJAXResponse(b,a){
    if((b.readyState==4)&&(b.status==200)){
        a(b.responseText)
    }
};
