if( typeof XMLHttpRequest == "undefined" )
	XMLHttpRequest = function() {
		// Fake it for IE
		return new ActiveXObject(
					// Diferentiate between IE5 &6
					navigator.userAgent.indexOf("MSIE 5") >= 0 ?
						"Microsoft.XMLHTTP" : "Msxml2.XMLHTTP"
				);
	
	};


XMLHttpRequest.prototype.getText = function (url) {

	this.open( "GET", url, true );
	this.send("");

};



var req = new XMLHttpRequest;

req.onreadystatechange = function() {

	
	switch( req.readyState ) {
	
		case 4:
				if( typeof req.oncomplete == "function" )
					eval("req.oncomplete();");
			
	}

}

