/**
 * This file is used to get the alphabetical search for the result watch using ajax request
 *
 * @author hemlata.dagaonkar on 7/23/2008
 */

// Set the default variable
var http = false;

// Check browser
if(navigator.appName == "Microsoft Internet Explorer") {
	http = new ActiveXObject("Microsoft.XMLHTTP");
} else {
	http = new XMLHttpRequest();
} 

// output the response text
function fetchResCal(alpha,order,count,sort,meeting_date) {
	//alert(alpha+" == "+"=="+order+" == "+"=="+count+" == "+"=="+sort+" == "+"=="+meeting_date);
	//alert("/shares/resultWatch/bin/resCal.php?alpha="+alpha+'&ord='+order+"&st="+count+"&order="+sort+'&date='+meeting_date);
	http.open("GET", "/shares/resultWatch/bin/resCal.php?alpha="+alpha+'&ord='+order+"&st="+count+"&order="+sort+'&date='+meeting_date, true);
	http.onreadystatechange=function() {
		if(http.readyState == 4) {
			document.getElementById('res_watch').innerHTML = http.responseText;
		}
	}
	http.send(null);
}