// JavaScript Document
function getHTTPObject() {	
	var xmlhttp;
	if (window.XMLHttpRequest) {
		xmlhttp = new XMLHttpRequest();
	} else if (window.ActiveXObject) {
		var versions = ["Msxml2.XMLHTTP.7.0", "Msxml2.XMLHTTP.6.0", "Msxml2.XMLHTTP.5.0", "Msxml2.XMLHTTP.4.0", "MSXML2.XMLHTTP.3.0", "MSXML2.XMLHTTP","Microsoft.XMLHTTP"];
		for (var i = 0; i < versions.length ; i++) {
			try {
				xmlhttp = new ActiveXObject(versions[i]);
				if (xmlhttp) break;
			} catch (objException) {
				// trap
				continue;
			}
		}
	}
	return xmlhttp;	
}

var http = getHTTPObject();

function processPageNavigation(){
	if (http.readyState == 4){
		document.getElementById("ajax_html").innerHTML=http.responseText;
	}
}

function requestPageNavigation(url){
	if(http){
		http.open("GET", url, true);	
		http.onreadystatechange = processPageNavigation;
		http.send(null);
	} else {
		alert("HTTP Object cannot be instantiated");
	}
}

