rem: checkNoOptStyles = true; var numSS = forDocument.styleSheets.length; var SS = forDocument.styleSheets; existingSS = new Array(); 
add: var noOptionalStyles = true; var styleSheets = forDocument.styleSheets; var currentStyleSheets = []; 
context: function stylesheetFillPopup(forDocument, menuPopup, itmNoOptStyles) {  children = menuPopup.childNodes;  ccount = children.length;  for (i=0; i<ccount; i++) {    mnuitem = children[i];    if (mnuitem.getAttribute("class") == "authssmenuitem")      menuPopup.removeChild(mnuitem);  }  checkNoOptStyles = true;  var numSS = forDocument.styleSheets.length;  var SS = forDocument.styleSheets;  existingSS = new Array();  for (var i=0; i<numSS; i++) {    curSS = SS[i];    if (curSS.title == "") continue;    if (!curSS.disabled)      checkNoOptStyles = false;    lastWithSameTitle = existingSS[curSS.title];    if (lastWithSameTitle == undefined) {      mnuitem = document.createElement("menuitem");      mnuitem.setAttribute("value", curSS.title);      mnuitem.setAttribute("data", curSS.title);      mnuitem.setAttribute("type", "radio");      mnuitem.setAttribute("checked", !curSS.disabled);      mnuitem.setAttribute("class", "authssmenuitem");      mnuitem.setAttribute("name", "authorstyle");      mnuitem.setAttribute("oncommand", "stylesheetSwitch(window._content.document, this.getAttribute('data'))");      menuPopup.appendChild(mnuitem);      existingSS[curSS.title] = mnuitem;    }    else {      if (curSS.disabled) lastWithSameTitle.setAttribute("checked", false);    }  }  itmNoOptStyles.setAttribute("checked", checkNoOptStyles);}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/8af6fdd67793deac301bb3a38dd32a9feff8f9a9/navigator.js/clean/suite/browser/navigator.js