function sendHTTPRequestAndAlertResponse (type, url, callback) {
	var xhr;
	
	try {
		xhr = new ActiveXObject('Msxml2.XMLHTTP');
	}
	catch (e) {
		try {
			xhr = new ActiveXObject('Microsoft.XMLHTTP');
		}
		catch (e2) {
			try {
				xhr = new XMLHttpRequest();
			}
			catch (e3) {
				xhr = false;
			}
		}
	}
	
	if (!xhr) {
		alert("XMLHttpRequest is not supported!");
		
		return;
	}
	
	xhr.open(type, url, true);
	
	xhr.onreadystatechange = function() {
		if (xhr.readyState == 4 && xhr.status == 200) {
			alert(xhr.responseText);
			
			callback();
		}
	};
	
	xhr.send(null);
}
