function updatematch(matchid,scoreone,scoretwo)
{

var xmlhttp;
if (window.XMLHttpRequest)
  {
  // code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp=new XMLHttpRequest();
  }
else if (window.ActiveXObject)
  {
  // code for IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
else
  {
  alert("Your browser does not support XMLHTTP!");
  }

xmlhttp.onreadystatechange=function()
{
if(xmlhttp.readyState==3)
  {
  document.getElementById("displaybox2").innerHTML="<center><span style=\"margin-top:25%;\"><img src=\"ajax/ajax-loader.gif\"></span></center>";
  }
if(xmlhttp.readyState==4)
  {
  document.getElementById("displaybox2").innerHTML=xmlhttp.responseText;
  var objCont = document.getElementById('all');
  objCont.style.height = parseInt(objCont.style.pixelHeight) + 'px';
  
  }
  
}
xmlhttp.open("GET","ajax/first/dispmatches.php?event=" + matchid +"&scoreone=" + scoreone +"&scoretwo=" + scoretwo,true);
xmlhttp.setRequestHeader("If-Modified-Since", "Sat, 1 Jan 2000 00:00:00 GMT");
xmlhttp.send(null);
}

