Required library edition: Required library file: dhtmlxwindows.js
returns current window's position
var pos = dhxWins.window(id).getPosition(); // returns [x,y]