var interval = 1;
var onprogress = false;

function startRequest()
{
  if(!onprogress){
    id = (new Date()).getTime();
    url = "http://localhost/showvotes.php?id=" + id;
    onprogress = true;
    startGETRequest(url, onComplete, onEnd);
  }
  setTimeout("startRequest();", interval * 1000);
}

function onComplete(text, xml)
{
  var dataDiv = document.getElementById("dataDiv");
  dataDiv.innerHTML = text;
}

function onEnd()
{
  onprogress = false;
}