Required library edition: Required library file: dhtmlxwindows.js
returns true if the window is on top
var isWinOnTop = dhxWins.window(id).isOnTop(); // returns true/false