Required library edition: Required library file: dhtmlxwindows.js
returns the bottommost window
var w1 = dhxWins.getBottommostWindow();