AjaxRequest = function(){
	this.r = arguments[0].r;
	this.f = arguments[0].f;
	this.a = arguments[0].a || null;
	this.init();

};
AjaxRequest.prototype.init = function(){
	var delegate = this;
	var req = (window.XMLHttpRequest) ? new XMLHttpRequest() : new ActiveXObject("Microsoft.XMLHTTP");
	req.open("post", this.f, true);
	req.onreadystatechange = function(){
		if(req.readyState == 4){
			if(req.status == 200){
				delegate.r(req.responseXML);
						
			}else{
				alert("STATUS CODE: " + this.status);
						
			}
			
		}
	
	};
	req.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
	req.send(this.a);

};