function jah(url,target,anchor) {
param="fromjah=true";
url = '/'+url;
    // native XMLHttpRequest object
    if (window.XMLHttpRequest) {
        req = new XMLHttpRequest();
        req.onreadystatechange = function() {jahDone(target,anchor);};
        req.open("POST", url+'?'+Math.random(), true);
        req.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
        req.setRequestHeader("Content-length", param.length);
        req.setRequestHeader("Connection", "close");
        req.send(param);

    // IE/Windows ActiveX version
    } else if (window.ActiveXObject) {
        req = new ActiveXObject("Microsoft.XMLHTTP");
        if (req) {
            req.onreadystatechange = function() {jahDone(target,anchor);};
            req.open("POST", url+'?'+Math.random(), true);
            req.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
            req.setRequestHeader("Content-length", param.length);
            req.setRequestHeader("Connection", "close");
            req.send(param);
        }
    }
}    

function jahDone(target,anchor) {
    // only if req is "loaded"
    if (req.readyState == 4) {
        // only if "OK"
        if (req.status == 200) {
            results = req.responseText;
            document.getElementById(target).innerHTML = results;
            window.location.hash=anchor;
            if(window.opera){
              window.setTimeout('window.location.href=window.location.href',1);
            }
            document.getElementById(target).innerHTML = results;
        } else {
            document.getElementById(target).innerHTML="Hier ensteht aktuell neuer Inhalt für Sie\n";
        }
    }
}
