function createXMLHttpRequest() {
	if (typeof XMLHttpRequest != 'undefined') {
		return new XMLHttpRequest();
	}
	try {
		return new ActiveXObject("Msxml2.XMLHTTP");
	} catch (e) {
		try {
			return new ActiveXObject("Microsoft.XMLHTTP");
		} catch (e) { }
	}
	return false;
}

function ajaxUpdate(url, id) {
	// Start the XML Process
	var xmlhttp = createXMLHttpRequest();
	if (xmlhttp) {
		xmlhttp.onreadystatechange = function() {
			if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
				document.getElementById(id).innerHTML = xmlhttp.responseText;
			}
			else if (xmlhttp.readyState == 1) {
      			// Set Loading Image in div
				document.getElementById(id).innerHTML = "<img src=\"/img/ajaxLoadBar.gif\" alt=\"Loading\" />";	
			}
		}
		xmlhttp.open("GET", url, true);
		xmlhttp.send(null);
	}
	else
	// Failed to make XMLHttpRequest
	{
		document.getElementById(id).innerHTML = "<p class=\"ajaxError\">Unable to Load Content</p>";
	}
}