Required library edition: Required library file: dhtmlxwindows.js
returns true if the window is modal
var isModal = dhxWins.window(id).isModal(); // returns true/false