// JavaScript Document
var xmlHttp;
var search_option;
function show_result(number){
	
   xmlHttp=GetXmlHttpObject()
   if (xmlHttp==null){
      alert ("Browser does not support HTTP Request");
      return;
   }

 	
   var url="scholarship.php";
   var parameters = "Submit=Submit&booklet="+ number ;
   
   xmlHttp.open("POST",url, true); 
   xmlHttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
   xmlHttp.setRequestHeader("Content-length", parameters.length);
   xmlHttp.setRequestHeader("Connection", "close");
   xmlHttp.onreadystatechange = function(){
	  if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete"){ 
		document.getElementById('test').style.display='block';
		document.getElementById('booklet');
		document.getElementById('test').innerHTML=xmlHttp.responseText;
		
      }    
   }
   xmlHttp.send(parameters); 
}



function GetXmlHttpObject()
{
  var xmlHttp=null;
  try
  {
   // Firefox, Opera 8.0+, Safari
   xmlHttp=new XMLHttpRequest();
  }
  catch (e)
  {
   //Internet Explorer
    try
    {
       xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    }
    catch (e)
    {
       xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
    }
   }
  return xmlHttp;
}