rem: var server; try { var folderURI = GetSelectedFolderURI(); server = GetServer(folderURI); } catch (ex) { /* functions might not be defined */}  window.openDialog("chrome: "AccountManager", "chrome,centerscreen,modal,titlebar", { server: server, selectPage: selectPage }); 
add: var windowManager = Components.classes['@mozilla.org/appshell/window-mediator;1']. getService(Components.interfaces.nsIWindowMediator);  var existingAccountManager = windowManager.getMostRecentWindow("mailnews:accountmanager");  if (existingAccountManager) existingAccountManager.focus(); else { var server; try { var folderURI = GetSelectedFolderURI(); server = GetServer(folderURI); } catch (ex) { /* functions might not be defined */}  window.openDialog("chrome: "AccountManager", "chrome,centerscreen,modal,titlebar", { server: server, selectPage: selectPage }); } 
context: function MsgAccountManager(selectPage){    var server;    try {        var folderURI = GetSelectedFolderURI();        server = GetServer(folderURI);    } catch (ex) { /* functions might not be defined */}        window.openDialog("chrome://messenger/content/AccountManager.xul",                      "AccountManager", "chrome,centerscreen,modal,titlebar",                      { server: server, selectPage: selectPage });}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/abd730aec4fda6df806827cd9bc42dbbe460ac51/accountUtils.js/buggy/mailnews/base/prefs/resources/content/accountUtils.js