rem: iWindow.focus(); 
add: toOpenWindow(iWindow); 
context: function CycleWindow( aType ){  var windowManager = Components.classes['@mozilla.org/appshell/window-mediator;1'].getService();  var windowManagerInterface = windowManager.QueryInterface(nsIWindowMediator);  var topWindowOfType = windowManagerInterface.getMostRecentWindow( aType );  var topWindow = windowManagerInterface.getMostRecentWindow( null );  if ( topWindowOfType == null )    return null;  if ( topWindowOfType != topWindow ) {    topWindowOfType.focus();    return topWindowOfType;  }  var enumerator = windowManagerInterface.getEnumerator( aType );  var firstWindow = enumerator.getNext().QueryInterface(nsIDOMWindowInternal);  var iWindow = firstWindow;  while (iWindow != topWindow && enumerator.hasMoreElements())    iWindow = enumerator.getNext().QueryInterface(nsIDOMWindowInternal);  if (enumerator.hasMoreElements()) {    iWindow = enumerator.getNext().QueryInterface(nsIDOMWindowInternal);    iWindow.focus();    return iWindow;  }  if (firstWindow == topWindow) // Only one window    return null;  firstWindow.focus();  return firstWindow;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/ee86ccbf34f8a5a2ebf544d2acd68d1a1afd4c20/tasksOverlay.js/buggy/suite/common/tasksOverlay.js