rem: var applyButton = document.getElementById("applySkin"); 
context: function themeSelect(){  var tree = document.getElementById("skinsTree");  var selectedItem = tree.selectedItems.length ? tree.selectedItems[0] : null;  if (selectedItem && selectedItem.getAttribute("skin") == "true") {    var themeName = selectedItem.getAttribute("displayName");    var nameField = document.getElementById("displayName");    nameField.setAttribute("value", themeName);    var author = document.getElementById("author");    author.setAttribute("value", selectedItem.getAttribute("author"));    var image = document.getElementById("previewImage");    image.setAttribute("src", selectedItem.getAttribute("image"));    var descText = document.createTextNode(selectedItem.getAttribute("description"));    var description = document.getElementById("description");    while (description.hasChildNodes())      description.removeChild(description.firstChild);    description.appendChild(descText);    var applyButton = document.getElementById("applySkin");    var uninstallButton = document.getElementById("uninstallSkin");    var applyLabel = gPrefutilitiesBundle.getString("applyThemePrefix");    var uninstallLabel = gPrefutilitiesBundle.getString("uninstallThemePrefix");    applyLabel = applyLabel.replace(/%theme_name%/, themeName);    uninstallLabel = uninstallLabel.replace(/%theme_name%/, themeName);    applyButton.label = applyLabel;    uninstallButton.label = uninstallLabel;    var locType = selectedItem.getAttribute("loctype");    uninstallButton.disabled = (locType == "install");  }}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/29efe696699f403ef29e115a56e7aef0c66a0d92/pref-themes.js/buggy/xpfe/components/prefwindow/resources/content/pref-themes.js