function ajax(url, id) {
	var req = false;
	try {
		req = new XMLHttpRequest();
	} catch(e) {
		try {
			req = new ActiveXObject("Msxml2.XMLHTTP");
		} catch(e) {
			try {
				req = new ActiveXObject("Microsoft.XMLHTTP");
			} catch(e) {
				req = false;
			}
		}
	}
	if (req) {
		req.onreadystatechange = function() {
			if (req.readyState == 4) {
				if (req.status == 200) {
					document.getElementById(id).innerHTML = req.responseText;
				} else {
					alert("Error in AJAX!");
				}
			}
		}
		req.open("GET", url, true);
		req.send(null);
	}
}
