function ahah(url, target) {
  //document.getElementById(target).innerHTML = ' ...';
  if (window.XMLHttpRequest) {
    req = new XMLHttpRequest();
  } else if (window.ActiveXObject) {
    req = new ActiveXObject("Microsoft.XMLHTTP");
  }
  if (req != undefined) {
    req.onreadystatechange = function() {ahahDone(url, target);};
    req.open("GET", url+"&z="+Math.random(), true);
    req.send("");
  }
}  

function ahahgrund(url, target) {
  //document.getElementById(target).innerHTML = ' ...';
  if (window.XMLHttpRequest) {
    reqg = new XMLHttpRequest();
  } else if (window.ActiveXObject) {
    reqg = new ActiveXObject("Microsoft.XMLHTTP");
  }
  if (reqg != undefined) {
    reqg.onreadystatechange = function() {ahahDoneg(url, target);};
    reqg.open("GET", url+"&z="+Math.random(), true);
    reqg.send("");
  }
}  

function ahahalterp(url, target) {
  //document.getElementById(target).innerHTML = ' ...';
  if (window.XMLHttpRequest) {
    reqa = new XMLHttpRequest();
  } else if (window.ActiveXObject) {
    reqa = new ActiveXObject("Microsoft.XMLHTTP");
  }
  if (reqa != undefined) {
    reqa.onreadystatechange = function() {ahahDonea(url, target);};
    reqa.open("GET", url+"&z="+Math.random(), true);
    reqa.send("");
  }
}  

function ahahbild(url, target) {
  if (window.XMLHttpRequest) {
    reqi = new XMLHttpRequest();
  } else if (window.ActiveXObject) {
    reqi = new ActiveXObject("Microsoft.XMLHTTP");
  }
  if (reqi != undefined) {
    reqi.onreadystatechange = function() {ahahDonei(url, target);};
    reqi.open("GET", url+"&z="+Math.random(), true);
    reqi.send("");
  }
} 


function ahahDone(url, target) {
  if (req.readyState == 4) { // only if req is "loaded"
    if (req.status == 200) { // only if "OK"
    	response = req.responseText;
      	changelager();
    } 
  }
}

function ahahDoneg(url, target) {
  if (reqg.readyState == 4) { // only if req is "loaded"
    if (reqg.status == 200) { // only if "OK"
      	grundresponse = reqg.responseText;
      	changegrund();
    } 
  }
}

function ahahDonea(url, target) {
    if (reqa.readyState == 4) { // only if req is "loaded"
    if (reqa.status == 200) { // only if "OK"
      	alterpresponse = reqa.responseText;
      	changealterp();
    } 
  }
}

function ahahDonei(url, target) {
    if (reqi.readyState == 4) { // only if req is "loaded"
    if (reqi.status == 200) { // only if "OK"
      	bildresponse = reqi.responseText;
      	changebild();
    } 
  }
}
