function jsUpdateHighs() {
    updateScores();
}

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;
}

function updateScores(){
xmlHttpU=GetXmlHttpObject()
if (xmlHttpU==null){
alert ("Browser does not support HTTP Request")
return
}
var url="http://beta.fluffylogic.net/twobytwo/updateScores.php"

xmlHttpU.onreadystatechange=stateChanged
xmlHttpU.open("GET",url,true)
xmlHttpU.send(null)
}

function stateChanged(){
if (xmlHttpU.readyState==4 || xmlHttpU.readyState=="complete"){
document.getElementById("scores").innerHTML=xmlHttpU.responseText;
}
} 
