var xmlHttp;

Ajax = {

	'noAjaxSupport' : false,

	'init' : function()
	{
		try {
			xmlHttp = new XMLHttpRequest();
		}
		catch (e) {
			try {
				xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
			}
			catch (e) {
				try {
					xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
				}
				catch (e) {
					this.noAjaxSupport = true;
				}
			}
		}
	},

	'sendRequest' : function(url, method)
	{
		method = !method ? 'GET' : method;

		if (xmlHttp.readyState != 0) xmlHttp.abort();

      xmlHttp.open (method, url, true);
      xmlHttp.onreadystatechange = function()
		{
      	if(xmlHttp.readyState == 4 && xmlHttp.responseText)
			{
				eval(xmlHttp.responseText);
        	}
      }
   	xmlHttp.send(null);
	}
}
Ajax.init();
