var AJAX = new Object();

AJAX.get = 	function get(url, method) {
   	var xmlHttpReq = false;
    var self = this;
    // Mozilla/Safari
   	if (window.XMLHttpRequest)
       	self.xmlHttpReq = new XMLHttpRequest();
    // IE
   	else if (window.ActiveXObject)
       	self.xmlHttpReq = new ActiveXObject("Microsoft.XMLHTTP");
    // execute query
   	self.xmlHttpReq.open('GET', url, true);
    self.xmlHttpReq.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
   	self.xmlHttpReq.onreadystatechange = function() {
       	if (method && self.xmlHttpReq.readyState == 4)
           	method(self.xmlHttpReq.responseText);
    }
   	self.xmlHttpReq.send(""); // query string is argument
}
