rem: var menupopups = aViewPopup.getElementsByTagName("menupopup"); if (menupopups.length > 1) {  RefreshTagsPopup(menupopups[0], aIsMenulist); RefreshCustomViewsPopup(menupopups[1], aIsMenulist); } 
context: function RefreshViewPopup(aViewPopup, aIsMenulist){  var menupopups = aViewPopup.getElementsByTagName("menupopup");  if (menupopups.length > 1)  {    // when we have menupopups, we assume both tags and custom views are there    RefreshTagsPopup(menupopups[0], aIsMenulist);    RefreshCustomViewsPopup(menupopups[1], aIsMenulist);  }  // mark default views if selected  if (!aIsMenulist)  {    var viewAll = aViewPopup.getElementsByAttribute("value", kViewItemAll)[0];    viewAll.setAttribute("checked", gCurrentViewValue == kViewItemAll);    var viewUnread = aViewPopup.getElementsByAttribute("value", kViewItemUnread)[0];    viewUnread.setAttribute("checked", gCurrentViewValue == kViewItemUnread);  }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/9351de814381f5a79bb3571114828ed297458798/msgViewPickerOverlay.js/buggy/mailnews/extensions/mailviews/resources/content/msgViewPickerOverlay.js