function moveWindow(elementName) {

        var el = document.getElementById(elementName);
        
        el.style.left = parseInt(((winW() / 2) - ((winW() - 1000) / 2) - (el.clientWidth / 2)) + ScrollLeft()) + "px";        
        el.style.top = parseInt(((winH() / 2) - (el.clientHeight)) + ScrollTop()) + "px";
        el.style.top = parseInt(-150) + "px";        
    }

    function ScrollTop() {
            return (document.body.scrollTop || document.documentElement.scrollTop);
        }

        function ScrollLeft() {
            return (document.body.scrollLeft || document.documentElement.scrollLeft)
        }

        function winH() {
           if (window.innerHeight)
              /* NN4 a kompatibilní prohlížeče */
              return window.innerHeight;
           else if
           (document.documentElement &&
           document.documentElement.clientHeight)
              /* MSIE6 v std. režimu - Opera a Mozilla
              již uspěly s window.innerHeight */
              return document.documentElement.clientHeight;
           else if
           (document.body && document.body.clientHeight)
              /* starší MSIE + MSIE6 v quirk režimu */
              return document.body.clientHeight;
           else
              return null;
        }

        function winW() {
           if (window.innerWidth)
              /* NN4 a kompatibilní prohlížeče */
              return window.innerWidth;
           else if
           (document.documentElement &&
           document.documentElement.clientWidth)
              /* MSIE6 v std. režimu - Opera a Mozilla
              již uspěly s window.innerHeight */
              return document.documentElement.clientWidth;
           else if
           (document.body && document.body.clientWidth)
              /* starší MSIE + MSIE6 v quirk režimu */
              return document.body.clientWidth;
           else
              return null;
        }
