function TAjax(){

	var bcvar=1 //bust potential caching? (1=yes, 0=no)
	var bcparam=""
	var handler = false;

	this.doInit = function(){
		
		
	}

	this.get = function(url,callback){

		if (window.XMLHttpRequest) // if Mozilla, Safari etc
			this.handler = new XMLHttpRequest()
		else if (window.ActiveXObject){ // if IE
			try {
				this.handler = new ActiveXObject("Msxml2.XMLHTTP")
			} 
			catch (e){
			try{
				this.handler = new ActiveXObject("Microsoft.XMLHTTP")
			}
				catch (e){}
			}
		}
		else
		return false

		if (this.handler!=null){
			this.handler.onreadystatechange=function(){
				callback();
			}

			if (this.bcvar) //if bust caching of external page
				this.bcparam=(url.indexOf("?")!=-1)? "&"+new Date().getTime() : "?"+new Date().getTime()

			this.handler.open('GET', url+bcparam, true);
			this.handler.send(null);
		}
	}

	this.ready = function(){
		if (this.handler!=null)
		{
			return (this.handler.readyState == 4 && (this.handler.status==200 || window.location.href.indexOf("http")==-1));
		}else{
			return (false);
		}
	}
}
