


    /**
     * OpenNewWindow
     *
     * @access public
     * @return void
     **/
    function OpenNewWindow( link, windowname, width, height ){

        var size;
        var scrolling;

        if (!windowname) {

            windowname = "_blank";
            scrolling = "no";

        } else if (windowname == 'agent' || windowname == 'hilfe') {

            scrolling = "yes";

        } else {

            scrolling = "no";

        }

        // Gecko-Engine?
        if (window.innerHeight) {
            size = "innerHeight=" + height + ",innerWidth=" + width;
        } else {

            if (windowname == 'agent') {
                size = "height=" + (height + 30) + ",width=" + width;
            } else {
                size = "height=" + (height) + ",width=" + (width);
            }
        }

        // alert (size + ",resizeable=yes,status=yes,toolbar=no,menubar=no,scrollbars=" + scrolling + ",scrolling=" + scrolling);

        window.open(link, windowname, size + ",resizeable=yes,status=yes,toolbar=no,menubar=no,scrollbars=" + scrolling);

    }
