var gXMLDoc = null;

function httpRequest(responseFunction, encodedURL, lockPage, parmString) {
	try {
	
		$.ajax({
          	type: "GET",
          	url: encodedURL,
          	data: parmString,
          	success: responseFunction
     	});
	
		// Test if Internet Exporer, otherwise assume Mozilla
		//if (typeof window.ActiveXObject != 'undefined') {
		//	xmlDoc = new ActiveXObject("Microsoft.XMLHTTP");
		//	xmlDoc.onreadystatechange = responseFunction;
		//} else {
		//	xmlDoc = new XMLHttpRequest();
		//	xmlDoc.onload = responseFunction;
		//}
		// Set URL (include time to ensure that request is not cached)
		//var url = encodedURL + "?httpRequest=true&x=" + new Date().getTime();
		//if (parmString!=null) url = url + "&" + parmString;

		// Check if to lock the page
		//if (lockPage==null) lockPage = false;

		// Execute Request
		//xmlDoc.open("GET", url, !lockPage);
		//xmlDoc.send(null);
	 } catch (e) {	
	 alert(e);
	 	alert("Ajax error"); 
	 	this.location.reload();
	 }	
}

function httpResponded(response) {
	return true;
	//if (typeof window.ActiveXObject != 'undefined')
	//	if (xmlDoc.readyState != 4) return false;
	//return true;
}

function getHttpResponseString() {
	//return xmlDoc.responseText;
}

