var xmlHttp6352;
function getSport()
{
 
xmlHttp6352=GetXmlHttpObject2352();
if (xmlHttp6352==null)
  {
  alert ("Your browser does not support AJAX Please Contact Administrator!");
  return;
  } 
var url="GetSport.php";
 
xmlHttp6352.onreadystatechange=stateChanged2352;
xmlHttp6352.open("GET",url,true);
xmlHttp6352.send(null);

}//get_egazat_control_value() function 

function stateChanged2352() 
{ 
if (xmlHttp6352.readyState==4)
{    
 
  info=xmlHttp6352.responseText;//contain id_username of the current user.....
    document.getElementById("sport").innerHTML=info;
 }//if readystate==4
 
 else{
    document.getElementById("sport").innerHTML="<img src='images/load.gif' />";
 }//else not in ready state yet

}//statechange function

function GetXmlHttpObject2352()
{
var xmlHttp6352=null;
try
  {
  // Firefox, Opera 8.0+, Safari
  xmlHttp6352=new XMLHttpRequest();
  }
catch (e)
  {
  // Internet Explorer
  try
    {
    xmlHttp6352=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    xmlHttp6352=new ActiveXObject("Microsoft.XMLHTTP");
    }
  }
return xmlHttp6352;
}//getxmlhttpobject




