fires when a window was focused on
myWins.attachEvent("onFocus", function(win){ // your code here });
win is dhtmlXWindowsCell instance, please check dhtmlXWindowsCell API for details