function ttAjax(){
	this.xmlHttp = null;
	
	this.createXmlHttpRequestObject =function(){
		var ids = ['MSXML2.XMLHTTP.3.0','MSXML2.XMLHTTP','Microsoft.XMLHTTP'];
		var xhr;
		if (typeof window.XMLHttpRequest === 'function') {
			xhr = new XMLHttpRequest();
		} else {
			for (var i = 0; i < ids.length; i++) {
				try {
					xhr = new ActiveXObject(ids[i]);
					break;
				} catch (e){}
			}
		}
		this.xmlHttp = xhr;
		return xhr;
	}
	
	this.sendRequest = function (address,handler,showProgress){//alert(address);
		this.createXmlHttpRequestObject();
		address = encodeURI(address);
		if(this.xmlHttp != null){
		  this.xmlHttp.open("GET", address, true);
		  
		  this.xmlHttp.onreadystatechange = (function(myxhr){return function(){if(myxhr.readyState == 4){if (myxhr.status == 200)handler(myxhr);else alert("There was a problem accessing the server: " + myxhr.statusText);}}})(this.xmlHttp);
		  this.xmlHttp.send(null);	
		  if(showProgress)setStatus(true);	
		}
		else
		{
			window.alert('Your web browser does not support AJAX.');
			return false;
		}	
	}
	return this;
}
