var xmlHttp

function showTv(str)
{ 
xmlHttp=GetXmlHttpObject();
if (xmlHttp==null)
  {
  alert ("Your browser does not support AJAX!");
  return;
  } 
var url="loadtvs.php";
url=url+"?q="+str;
url=url+"&sid="+Math.random();
xmlHttp.onreadystatechange=stateChanged;
xmlHttp.open("GET",url,true);
xmlHttp.send(null);
}

function stateChanged() 
{ 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
{ 

document.getElementById("flashtv").innerHTML="";
document.getElementById("flashtv").innerHTML=xmlHttp.responseText;


}
else {
//document.getElementById("flashtv").src = "http://www.lesjeudis.com/img/BigLoading.gif";
}
}


function showScore(str1)
{ 
xmlHttp1=GetXmlHttpObject();
if (xmlHttp1==null)
  {
  alert ("Your browser does not support AJAX!");
  return;
  } 
var url1="loadscore.php";
url1=url1+"?qs="+str1;
url1=url1+"&sid="+Math.random();
xmlHttp1.onreadystatechange=stateChanged2;
xmlHttp1.open("GET",url1,true);
xmlHttp1.send(null);
}

function stateChanged2() 
{ 
if (xmlHttp1.readyState==4 || xmlHttp1.readyState=="complete")
{
document.getElementById("scorematch").innerHTML="";
document.getElementById("scorematch").innerHTML=xmlHttp1.responseText;

}
else {

}
}


function showStats(str2)
{ 
xmlHttp11=GetXmlHttpObject();
if (xmlHttp11==null)
  {
  alert ("Your browser does not support AJAX!");
  return;
  } 
var url11="loadstats.php";
url11=url11+"?qs="+str2;
url11=url11+"&sid="+Math.random();
xmlHttp11.onreadystatechange=stateChanged3;
xmlHttp11.open("GET",url11,true);
xmlHttp11.send(null);
}

function stateChanged3() 
{ 
if (xmlHttp11.readyState==4 || xmlHttp11.readyState=="complete")
{
document.getElementById("excite").innerHTML="";
document.getElementById("excite").innerHTML=xmlHttp11.responseText;

}
else {
document.getElementById("excite").innerHTML = "<img src='img/BigLoading.gif' alt='Loading...' />";

}
}


function showStats1(str1)
{ 
xmlHttp1=GetXmlHttpObject();
if (xmlHttp1==null)
  {
  alert ("Your browser does not support AJAX!");
  return;
  } 
var url1="loadstats.php";
url1=url1+"?qs="+str1;
url1=url1+"&sid="+Math.random();
xmlHttp1.onreadystatechange=stateChanged4;
xmlHttp1.open("GET",url1,true);
xmlHttp1.send(null);
}

function stateChanged4() 
{ 
if (xmlHttp1.readyState==4 || xmlHttp1.readyState=="complete")
{
document.getElementById("excite1").innerHTML="";
document.getElementById("excite1").innerHTML=xmlHttp1.responseText;

}
else {
document.getElementById("excite1").innerHTML = "<img src='img/BigLoading.gif' alt='Loading...' />";

}
}


function showStats2(str1)
{ 
xmlHttp1=GetXmlHttpObject();
if (xmlHttp1==null)
  {
  alert ("Your browser does not support AJAX!");
  return;
  } 
var url1="loadstats.php";
url1=url1+"?qs="+str1;
url1=url1+"&sid="+Math.random();
xmlHttp1.onreadystatechange=stateChanged5;
xmlHttp1.open("GET",url1,true);
xmlHttp1.send(null);
}

function stateChanged5() 
{ 
if (xmlHttp1.readyState==4 || xmlHttp1.readyState=="complete")
{
document.getElementById("excite2").innerHTML="";
document.getElementById("excite2").innerHTML=xmlHttp1.responseText;

}
else {
document.getElementById("excite2").innerHTML = "<img src='img/BigLoading.gif' alt='Loading...' />";

}
}
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;
}