XHR = {

	load: function(url){
		if(window.XMLHttpRequest){

			req = new XMLHttpRequest();

			req.onreadystatechange = XHR.processMethod;

			req.open("GET", url, true);

			req.send(null);

		}else if(window.ActiveXObject){

			req = new ActiveXObject("Microsoft.XMLHTTP");

			if(req){

				req.onreadystatechange = XHR.processMethod;

				req.open("GET", url, true);

				req.send();

			}else{

				

			}

		}

	},

	

	processMethod: function(){

		if(req.readyState==4){

			if(req.status==200){

				response = req.responseXML.documentElement;

				method = response.getElementsByTagName('method')[0].firstChild.data;

				result = response.getElementsByTagName('result')[0].firstChild.data;

				eval(method + '(result)');

			}

		}

	}



}
