function ahah(url) {
  if (window.XMLHttpRequest) {
    req = new XMLHttpRequest();
  } else if (window.ActiveXObject) {
    req = new ActiveXObject("Microsoft.XMLHTTP");
  }
  if (req != undefined) {
    req.onreadystatechange = function() {ahahDone(url);};
    req.open("GET", url+"&z="+Math.random(), true);
    req.send("");
  }
}  

function ahahDone(url) {
  if (req.readyState == 4) { // only if req is "loaded"
    if (req.status == 200) { // only if "OK"
      response = req.responseText;
      answer(response);
    } 
  }
}


function ahah2(url2) {
  if (window.XMLHttpRequest) {
    req2 = new XMLHttpRequest();
  } else if (window.ActiveXObject) {
    req2 = new ActiveXObject("Microsoft.XMLHTTP");
  }
  if (req2 != undefined) {
    req2.onreadystatechange = function() {ahahDone2(url2);};
    req2.open("GET", url2+"&z="+Math.random(), true);
    req2.send("");
  }
}  

function ahahDone2(url2) {
  if (req2.readyState == 4) { // only if req is "loaded"
    if (req2.status == 200) { // only if "OK"
      response = req2.responseText;
      frage24action(response);
    } 
  }
}


function ahah3(url3) {
  if (window.XMLHttpRequest) {
    req3 = new XMLHttpRequest();
  } else if (window.ActiveXObject) {
    req3 = new ActiveXObject("Microsoft.XMLHTTP");
  }
  if (req3 != undefined) {
    req3.onreadystatechange = function() {ahahDone3(url3);};
    req3.open("GET", url3+"&z="+Math.random(), true);
    req3.send("");
  }
}  

function ahahDone3(url3) {
    if (req3.readyState == 4) { // only if req is "loaded"
    if (req3.status == 200) { // only if "OK"
      response3 = req3.responseText;
      frage24chat(response3);
    } 
  }
}
