rem: var charset = wnd.document.characterSet; var menuitem = document.getElementById('charset.' + charset); 
add: if (gLastBrowserCharset) {  menuitem = document.getElementById('charset.' + gLastBrowserCharset); } else {  var wnd = document.commandDispatcher.focusedWindow; if ((window == wnd) || (wnd == null)) wnd = window._content; menuitem = document.getElementById('charset.' + wnd.document.characterSet); } 
context: function UpdateCurrentCharset(){    var wnd = document.commandDispatcher.focusedWindow;    if ((window == wnd) || (wnd == null)) wnd = window._content;    var charset = wnd.document.characterSet;    var menuitem = document.getElementById('charset.' + charset);    if (menuitem) {        menuitem.setAttribute('checked', 'true');    }}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/350d1563587583c2fd46b9251b7ebfaa67bb5644/charsetOverlay.js/clean/xpfe/global/resources/content/charsetOverlay.js