<!--
    // 2006 - Alexander Philipp Lintenhofer
    function relative2absolute(relative_url,caller_url)
    {
        var callerpfad = caller_url.substring(0,(caller_url.lastIndexOf("/")+1));
        while (relative_url.match(/^\.{2}\//))
        {
            relative_url=relative_url.replace(/(^\.{2}\/)(.*)/,"$2");
            callerpfad=callerpfad.replace(/(.*)(\/.+\/$)/,"$1")+"/";
        }
        return callerpfad+relative_url;
    }

// ===============================================================================================
// popup window with link on www.bundesheer.at
    function popup_own(url,width,height)
    {
        width=(width>0)?width:600;
        height=(height>0)?height:300;

        if (!(url.charAt(0)=="/")) url = relative2absolute(url,self.location.pathname);

        var liho=window.open(url,"","width="+width+",height="+height+",screenX=50,screenY=50,resizable=yes,scrollbars=no,dependent=yes");
        liho.focus();
    }

// ===============================================================================================
// popup window to foreign URL
    function popup_foreign(url,width,height)
    {
        width=(width>0)?width:600;
        height=(height>0)?height:300;

        var liho=window.open(url,"","width="+width+",height="+height+",screenX=50,screenY=50,resizable=yes,scrollbars=no,dependent=yes");
        liho.focus();
    }
//-->