rem: var folderItem = document.getElementById(window.arguments[2]); 
add: folderItem = document.getElementById(window.arguments[2]); 
context: function Startup(){  doSetOKCancel(onOK);  gFld_Name = document.getElementById("name");  gFld_URL = document.getElementById("url");  gFolderTree = document.getElementById("folders");    var shouldSetOKButton = true;  if ("arguments" in window) {    switch (window.arguments[4]) {    case "selectFolder":      // If we're being opened as a folder selection window      document.getElementById("bookmarknamegrid").setAttribute("hidden", "true");      document.getElementById("createinseparator").setAttribute("hidden", "true");      document.getElementById("nameseparator").setAttribute("hidden", "true");      sizeToContent();      var windowNode = document.getElementById("newBookmarkWindow");      windowNode.setAttribute("title", windowNode.getAttribute("title-selectFolder"));      shouldSetOKButton = false;      var folderItem = document.getElementById(window.arguments[2]);      if (folderItem)        gFolderTree.selectItem(folderItem);      break;    case "newBookmark":      setupFields();      if (window.arguments[2])        gCreateInFolder = window.arguments[2];      document.getElementById("folderbox").setAttribute("hidden", "true");      windowNode = document.getElementById("newBookmarkWindow");      windowNode.removeAttribute("persist");      windowNode.removeAttribute("height");      windowNode.removeAttribute("width");      windowNode.setAttribute("style", windowNode.getAttribute("style"));      sizeToContent();      break;    default:      // Regular Add Bookmark      setupFields();      if (window.arguments[2]) {        gCreateInFolder = window.arguments[2];        var folderItem = document.getElementById(gCreateInFolder);        if (folderItem)          gFolderTree.selectItem(folderItem);      }    }  }    if (shouldSetOKButton)    onLocationInput();  gFld_Name.select();  gFld_Name.focus();} 
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/453419028e936ea5214458f1dd3ba4e6f1d6cb4d/addBookmark.js/buggy/xpfe/components/bookmarks/resources/addBookmark.js