rem: var result = getServerIdAndPageIdFromTree(accounttree); if (result) { updateButtons(accounttree,result.serverId); } 
add: var lastItem = selectedServer.lastChild.lastChild; if (lastItem.localName == "treeitem") index = accounttree.contentView.getIndexOfItem(lastItem);  accounttree.treeBoxObject.ensureRowIsVisible(index);  updateButtons(accounttree, selectedServer.id); 
context: function selectServer(server, selectPage){  var selectedItem;  if (server) {    selectedItem = document.getElementById(server.serverURI);    if (selectedItem && selectPage)       selectedItem = findSelectPage(selectedItem, selectPage);  }  if (!selectedItem)    selectedItem = getFirstAccount();  var index = accounttree.contentView.getIndexOfItem(selectedItem);  accounttree.treeBoxObject.selection.select(index);  var result = getServerIdAndPageIdFromTree(accounttree);  if (result) {    updateButtons(accounttree,result.serverId);  }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/9ad94f0a3b92e5b9449560b58fa7f9685bc5b83c/AccountManager.js/clean/mailnews/base/prefs/resources/content/AccountManager.js