Required library edition: Required library file: dhtmlxwindows.js
returns current max window's dimension
var dim = dhxWins.window(id).getMaxDimension(); // returns [w,h]