Required library edition: Required library file: dhtmlxwindows.js
keeps a window within the viewport
dhxWins.window(id).keepInViewport(true/false);