<!-- 


//Browser Support Code
function ajaxFunction(){
	//var ajaxRequest;  // The variable that makes Ajax possible!
	
		try {
  var ajaxRequest = new XMLHttpRequest();
} catch (e) {
try {
  var ajaxRequest = new ActiveXObject('Msxml2.XMLHTTP');
} catch (e) {
try {
  var ajaxRequest = new ActiveXObject('Microsoft.XMLHTTP');
} catch (e) {
  document.write('XMLHttpRequest not supported'); }
}
}


	
	// Create a function that will receive data sent from the server
	ajaxRequest.onreadystatechange = function(){
		if(ajaxRequest.readyState == 4){
			var ajaxDisplay = document.getElementById('ajaxDiv');
			ajaxDisplay.innerHTML = ajaxRequest.responseText;
		}
	}
	
	
	
	var selRes = document.getElementById('selRes').value;
	var pentad = document.getElementById('pentad').value;

	var id=new Date();
	
	var queryString = "?selRes=" + selRes + "&pentad="+pentad+ "&Pentad="+pentad+ "&id="+id;
	
	if(selRes=='map')
		{	
		//ajaxRequest.open("GET", "gmap.php" + queryString, true);
		window.location = "http://sabap2.adu.org.za/gmap.php?Pentad="+pentad;
		} 
	else if(selRes=='spp')
		{
		ajaxRequest.open("GET", "data_summary_pentad_spp.php" + queryString, true);
		} 
	else 
		{
		ajaxRequest.open("GET", "data_summary_pentad_section.php" + queryString, true);
		}
		
	var ajaxDisplay = document.getElementById('ajaxDiv');
	ajaxDisplay.innerHTML = '<table align="center" valign="middle"><tr><td><img src="image/ajax-loader.gif" width="100"/></td></tr></table>';
	
	ajaxRequest.send(null); 
}



//-->