function loadHTML(type, st, page) {
	if (type == 'searchtypenav') {
		httpObj = createXMLHttpRequest(displaySearchTypeNavData);
		makeRequest(type, httpObj, st);
	}
}

function makeRequest(type, httpObj, st) {
	if (httpObj) {
		if (type == 'searchtypenav') {
			requestURL = document.sbox.action + "type/aj/page/3/?searchtype=" + st;
		}
		httpObj.open("GET", requestURL, true);
		httpObj.send(null);
	}
}


function displaySearchTypeNavData() {
	if ((httpObj.readyState == 4) && (httpObj.status == 200)) {
			document.getElementById("searchTypeNav").innerHTML = httpObj.responseText;
	}
}

function displaySearchData() {
	if ((httpObj.readyState == 4) && (httpObj.status == 200)) {
			document.getElementById("content_search").innerHTML = httpObj.responseText;
	}
}

function displayOvertureData() {
	if ((httpObj.readyState == 4) && (httpObj.status == 200)) {
			ovText = httpObj.responseText.split('ddddddd');
			document.getElementById("content_overture_upper").innerHTML = ovText[0];
			document.getElementById("content_overture_lower").innerHTML = ovText[1];
			document.getElementById("content_overture_right").innerHTML = ovText[2];
	}
}

function createXMLHttpRequest(cbFunc) {
	var XMLhttpObject = null;
	try {
		XMLhttpObject = new XMLHttpRequest();
	}catch(e) {
		try {
			XMLhttpObject = new ActiveXObject("Msxml2.XMLHTTP");
		}catch(e) {
			try {
				XMLhttpObject = new ActiveXObject("Microsoft.XMLHTTP");
			}catch(e) {
				return null;
			}
		}
	}
	if (XMLhttpObject) {
		XMLhttpObject.onreadystatechange = cbFunc;
	}
	return XMLhttpObject;
}
