rem: onLocationInput(); 
add: onFieldInput(); 
context: function Startup(){  gFld_Name = document.getElementById("name");  gFld_URL = document.getElementById("url");  gFolderTree = document.getElementById("folders");    var shouldSetOKButton = true;  if ("arguments" in window) {    var folderItem;    var arg;    if (window.arguments.length < 5)      arg = null;    else      arg = window.arguments[4];    switch (arg) {    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 dialogNode = document.getElementById("newBookmarkDialog");      dialogNode.setAttribute("title", windowNode.getAttribute("title-selectFolder"));      shouldSetOKButton = false;      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("newBookmarkDialog");      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];        folderItem = document.getElementById(gCreateInFolder);        if (folderItem)          gFolderTree.selectItem(folderItem);      }    }  }    if (shouldSetOKButton)    onLocationInput();  gFld_Name.select();  gFld_Name.focus();} 
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/d24642a9e6ca9df1e3f8d483803ddcd38c573f2f/addBookmark.js/buggy/xpfe/components/bookmarks/resources/addBookmark.js