var xmlhttpreq = null;
 
function GetHTTPRequest() {
  var xmlhttp = false;
    try {
      xmlhttp = new XMLHttpRequest();
    } catch (trymicrosoft) {
      try {
        xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
      } catch (othermicrosoft) {
        try {
          xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
        } catch (failed) {
          xmlhttp = false;
        }
      }
    }
  return xmlhttp;
}
 
xmlhttpreq = GetHTTPRequest();
 
function StartRequest(pars) {
  // Persistente Verbindung öffnen
  xmlhttpreq.open('GET', 'auswertung.php?'+pars, true);
  xmlhttpreq.onreadystatechange = handle_response;
  xmlhttpreq.send(null);
}
 
function handle_response() {
  document.getElementById('auswertung').innerHTML = xmlhttpreq.responseText;
}