function loadXMLDoc()
{
xmlhttp=null;

if (window.XMLHttpRequest)
  {
  // code for IE7, Firefox, Mozilla, etc.
  xmlhttp=new XMLHttpRequest();
  }
else if (window.ActiveXObject)
  {// code for IE5, IE6
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
if (xmlhttp!=null)
  {
  xmlhttp.onreadystatechange=onResponse;
  xmlhttp.open("GET","football.xml?"+ new Date().getTime(),true);
  xmlhttp.send(null);
  }
else
  {
  alert("Your browser does not support XMLHTTP.");
  }
}

function onResponse()
{

if(xmlhttp.readyState!=4) return;
if(xmlhttp.status!=200)
  {
  return;
  }


x=xmlhttp.responseXML.documentElement.getElementsByTagName("a");

for (i=0;i<x.length;i++)
  {

  id=x[i].getElementsByTagName("g");
  ti=x[i].getElementsByTagName("t");
  sc=x[i].getElementsByTagName("s");


	if(document.getElementById("sc" + id[0].firstChild.nodeValue)){
	
		document.getElementById("sc" + id[0].firstChild.nodeValue).innerHTML= sc[0].firstChild.nodeValue;
	}


	if(document.getElementById("ti" + id[0].firstChild.nodeValue)){

		document.getElementById("ti" + id[0].firstChild.nodeValue).innerHTML= ti[0].firstChild.nodeValue;
	}

  }


}

