function newRequest() {
	var xmlHttp;
	
	try {
		xmlHttp = new XMLHttpRequest();
	}
	catch (e) {
		try {
			xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
		}
		catch (e) {
			try {
				xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
			}
			catch (e) {
				alert("Your browser does not support AJAX!");
				return false;
			}
		}
	}
	
	return xmlHttp;
}

function sendRequest(script, handler) {
	var httpXML = newRequest();
	httpXML.onreadystatechange = function() {
		if (httpXML.readyState == 4) {
			handler(httpXML.responseText);
		}
	}
	httpXML.open("GET", script, true);
	httpXML.send(null);
}

function sampleHandler(response) {
	alert(response);
}