function AjaxHandler()
{
	this.queryString = '';
	this.url = '';
	AjaxHandler.prototype.getQueryString = function() {
	    return this.queryString;
	}
	AjaxHandler.prototype.setQueryString = function(queryString) {
	    this.queryString = queryString;
	}
	AjaxHandler.prototype.getUrl = function() {
	    return this.url;
	}
	AjaxHandler.prototype.setUrl = function(url) {
	    this.url = url;
	}
	AjaxHandler.prototype.convertXmlToJs = function(xmlFileString) {
		var obj = new Array();
		obj = xmlToObject(xmlFileString);
		return obj;
	}
	AjaxHandler.prototype.send = function(method, callBackMethod) {
		var xmlHttpReq = false;
	    var self = this;
	    /* Mozilla/Safari */
	    if (window.XMLHttpRequest) {
	        self.xmlHttpReq = new XMLHttpRequest();
	    }
	    /* IE */
	    else if (window.ActiveXObject) {
	        self.xmlHttpReq = new ActiveXObject("Microsoft.XMLHTTP");
	    }
	    self.xmlHttpReq.open(method, this.url, true);
	    self.xmlHttpReq.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');

	    self.xmlHttpReq.onreadystatechange = function() {
	        if (self.xmlHttpReq.readyState == 4) {
				if(self.xmlHttpReq.status==200)
	            {
					str=self.xmlHttpReq.responseText;
					obj = self.convertXmlToJs(str);
					eval(callBackMethod+"(obj)");/* The Callback function */
				}
				else
				{
					/* Some Error... Backup Plan */
				}
	        }
	    }
	    self.xmlHttpReq.send(this.getQueryString());
	}
}
