function appe_ajaxHandler(){
    this.httpobj = null;
    this.state = null;
    this.isReady = null;
    this.errorMsg = null;
    this.responseErrorMsg = null;
    this.verbose = false;
    this.responseTxt = '';

    this.sendRequest = function(URL)
    {
        if (!this.httpobj) return false;
        this.httpobj.open('get', URL, false); 
        this.httpobj.send(URL);
        
        if(this.httpobj.status == 200) 
        {
            this.responseTxt = this.httpobj.responseText;
            if(this.responseTxt == null) {
                this.responseErrorMsg = "Server returned null value!";
                return false;
            }
            if(this.responseTxt.charAt(0) != '!')
            {
                return this.responseTxt;
            }
            else
            {
                this.responseErrorMsg = this.responseTxt.substring(1,this.responseTxt.length-1);
                return false;
            }
        } else {this.errorMsg = "Server returned status code "+this.httpobj.responseStatus+"."; return false;}
    };
    
    this.getErrors = function() {
        return (this.responseErrorMsg != null)?this.responseErrorMsg:this.errorMsg;
    }
    
    this.createhttpobj = function() {
    
		try {
			this.httpobj = new ActiveXObject("Msxml2.XMLHTTP");
		} catch (e) {
			try {
				this.httpobj = new ActiveXObject("Microsoft.XMLHTTP");
			} catch (err) {
				this.httpobj = null;
			}
		}
		if(!this.httpobj && typeof XMLHttpRequest != "undefined")
			this.httpobj = new XMLHttpRequest();
	};
	
	this.createhttpobj();

}