function erzXMLHttpReqObj(){
    var resObjekt = null;

    try{
        resObjekt = new ActiveXObject("Microsoft.XMLHTTP");
    }
    catch(Error){
        try{
            resObjekt = new ActiveXObject("MSXML2.XMLHTTP");
        }
        catch(Error){
            try{
                resObjekt = new XMLHttpRequest();
            }
            catch(Error){
                alert("Erzeugung des XMLHttpRequest-Objekts ist nicht möglich.");
            }
        }
    }

    //resObjekt.setRequestHeader("Content-Type", "text/html; charset=ISO-8859-1");
    return resObjekt;




    /*var xmlHttp = null;
    // Mozilla, Opera, Safari sowie Internet Explorer 7
    if (typeof XMLHttpRequest != 'undefined') {
        xmlHttp = new XMLHttpRequest();
    }
    if (!xmlHttp) {
        // Internet Explorer 6 und älter
        try {
            xmlHttp  = new ActiveXObject("Msxml2.XMLHTTP");
        } catch(e) {
            try {
                xmlHttp  = new ActiveXObject("Microsoft.XMLHTTP");
            } catch(e) {
                xmlHttp  = null;
            }
        }
    }

    return xmlHttp;*/
}