
	subject_id = '';
	function handleHttpResponse() {
		document.getElementById(subject_id).innerHTML = 
				'<img src="images/loading.gif">';
				//"<span style='font-size:11px'>Loading...Please wait</span>";
				
		if (http.readyState == 4) {
			if (subject_id != '') {
				document.getElementById(subject_id).innerHTML = http.responseText;
			}
		}
	}
	// added by Bryan Jayson Tan 
	function handleHttpResponse1() {
		document.getElementById(subject_id).innerHTML = 
				'<img src="images/loading.gif" style="position:absolute;top:0;bottom:0;left:0;right:0;margin:auto;" />';
				//"<span style='font-size:11px'>Loading...Please wait</span>";
				
		if (http.readyState == 4) {
			if (subject_id != '') {
				document.getElementById(subject_id).innerHTML = http.responseText;
			}
		}
	}
	// up to here
	
	function getHTTPObject() {		
		var xmlhttp;
		try {
			xmlhttp = new ActiveXObject ("Msxml2.XMLHTTP")}
		catch (e) {
			try {
			xmlhttp = new ActiveXObject ("Microsoft.XMLHTTP")}
			catch (E) {
			  xmlhttp = false;
			}
		}

		if (!xmlhttp && typeof XMLHttpRequest != 'undefined') {
			try {
			  var xmlhttp = new XMLHttpRequest ();
			}
			catch (e) {
			  var xmlhttp = false;
			}
		}
		return xmlhttp;
	}
	var http = getHTTPObject(); // We create the HTTP Object