function XHR(){
    this.xhr = null;
    this.init();
}
XHR.prototype = {
    constructor: XHR,

    init: function(){
        try{
            this.xhr = new XMLHttpRequest();
        }catch(e1){
            try{
                this.xhr = new ActiveXObject("Msxml2.XMLHTTP");
            }catch(e2){
                this.xhr = new ActiveXObject("Microsoft.XMLHTTP");
            }
        }
    },

    getXHR: function(){
        if(this.xhr == null){
            return false;
        }else{
            return this.xhr;
        }
    }
}
