// JavaScript Document
function ValUser(uname,dis_id)
{
	var xmlHttp;
	try
	{  // Firefox, Opera 8.0+, Safari
		xmlHttp=new XMLHttpRequest(); 
	}
	catch (e)
	{  // Internet Explorer
		try
		{
			xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
	    }
		catch (e)
	    {
			try
			{
				xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
	    	}
	    	catch (e)
    	  	{
				alert("Your Browser does not supports Ajax Technology");
			}
		}
	} 
	xmlHttp.onreadystatechange=function()
    {
	  if(xmlHttp.readyState==3)
	  {
	  	document.getElementById(dis_id).innerHTML = "Processing...";
	  }			
	  else if(xmlHttp.readyState==4)
      {
	    document.getElementById(dis_id).innerHTML = xmlHttp.responseText
	  }	
    }
  xmlHttp.open("GET","useravailibility.php?user_name="+uname,true);
  xmlHttp.send(null); 
}