//Ajax Function
function Ajax() {
	var xmlhttp;
	try
	{
		xmlhttp = new ActiveXObject("Msxml2.XMLHTTP.4.0");
	} catch (e) {
		try {
			xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
		} catch (e) {
			try {
				xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
			} catch (e) {
				xmlhttp = false;
			}
		}
	}
	//for firefox
	if (!xmlhttp && typeof XMLHttpRequest != 'undefined') {
		xmlhttp = new XMLHttpRequest();
	}

	this.xmlhttp=xmlhttp;
	
	function responseIsSuccess() {
		return xmlhttp.status == undefined 
	    || xmlhttp.status == 0 
    	|| (xmlhttp.status >= 200 && xmlhttp.status < 300); 
	}
		
	this.getURL=function(url,asynchronous,callback) {
		xmlhttp.open('GET', url, asynchronous); 
		if (asynchronous) xmlhttp.onreadystatechange = function(){
			if(xmlhttp.readyState == 4){
				if(responseIsSuccess()) 	callback(true,xmlhttp.responseText);
				else callback(false);
			}
		}
		xmlhttp.send(null); 
		if (asynchronous==false) {
			
			if(this.callback)
			{
				if(responseIsSuccess()) callback(true,xmlhttp.responseText);
			}
			else
			{
				this.responseText=xmlhttp.responseText;
			}
		}
	}
}