var xmlHttpReq = new Array();

function ajaxload(strURL, strID) {
    document.getElementById(strID).innerHTML = '<img src="./bilder/ajaxload.gif" width="16" height="16">';

    var i = xmlHttpReq.length;

    xmlHttpReq[i] = false;
    var self = this;
    if (window.XMLHttpRequest) {
        self.xmlHttpReq[i] = new XMLHttpRequest();
    } else if (window.ActiveXObject) {
        self.xmlHttpReq[i] = new ActiveXObject("Microsoft.XMLHTTP");
    }
    self.xmlHttpReq[i].open('GET', strURL, true);
    self.xmlHttpReq[i].setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
    self.xmlHttpReq[i].onreadystatechange = function() {
        if (self.xmlHttpReq[i].readyState == 4) {
            document.getElementById(strID).innerHTML = self.xmlHttpReq[i].responseText;
        }
    }
    self.xmlHttpReq[i].send(null);
}
