Required library edition: Required library file: dhtmlxwindows.js
returns the topmost window
var w1 = dhxWins.getTopmostWindow(true/false);