// JavaScript Document
function select_studentid()
{	
	var id=document.getElementById('st_id').value;
	ajaxFunction(id);	
}



function ajaxFunction(str)
{
	var xmlHttp;	
	try
	{	
		xmlHttp=new XMLHttpRequest();
	}
	catch (e)
	{	
		try
		{
			xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
		}
		catch (e)
		{
	   	 	try
	    	{
	     		 xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
	    	}
	   		catch (e)
	  		{
	        		alert("Your browser does not support AJAX!");
	        		return false;
	   		}
		}
	}
		
	xmlHttp.onreadystatechange=function()
	{
		//alert(document.getElementById('flag').value);
		//alert(xmlHttp.responseText);
		//alert(xmlHttp.readyState);
		if(xmlHttp.readyState==4)
		{   
		    //alert(xmlHttp.responseText);
			///var val  = document.getElementById('flag').value;
			//alert(val);
			document.getElementById('flag').value = xmlHttp.responseText;	
			//var val2  = document.getElementById('flag').value;
			//alert(val2);
			//var i=0;
			//var j=0;
			//
			
			/*if(xmlHttp.responseText==1)
			{*/ 
			   /* 
		 		alert(xmlHttp.responseText);
				
				
				
				
				var s=0;*/
			/*}
			else
			{
				document.getElementById('show10').style.display='none';	
				}*/
		}
		
	}
	
	var url="check_loginid.php";
	url=url+"?id=" + str;	
	xmlHttp.open("GET",url,true);
	xmlHttp.send(null);
	
}
	
