add:  var observerService = Components.classes["@mozilla.org/observer-service;1"].getService(Components.interfaces.nsIObserverService); observerService.notifyObservers(null, "charsetmenu-selected", "other"); 
context: function Startup(){  if (!InitEditorShell())    return;  doSetOKCancel(onOK, onCancel);  gDialog.TitleInput    = document.getElementById("TitleInput");  gDialog.charsetTree   = document.getElementById('CharsetTree');   gDialog.exportToText  = document.getElementById('ExportToText');  contenttypeElement = GetHTTPEquivMetaElement("content-type");  if(!contenttypeElement && (editorShell.contentsMIMEType != 'text/plain'))   {    contenttypeElement = CreateHTTPEquivMetaElement("content-type");    if( ! contenttypeElement ) 	{      window.close();      return;    }    insertNewContentType = true;  }  InitDialog();  // Use the same text as the messagebox for getting title by regular "Save"  document.getElementById("EnterTitleLabel").setAttribute("value",GetString("NeedDocTitle"));  // This is an <HTML> element so it wraps -- append a child textnode  var helpTextParent = document.getElementById("TitleHelp");  var helpText = document.createTextNode(GetString("DocTitleHelp"));  if (helpTextParent)    helpTextParent.appendChild(helpText);    // SET FOCUS TO FIRST CONTROL  SetTextboxFocus(gDialog.TitleInput);  LoadAvailableCharSets();  initDone = true;  SetWindowLocation();}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/86095087bd4e76f5035fb2d382385e1f56008861/EditorSaveAsCharset.js/clean/editor/ui/dialogs/content/EditorSaveAsCharset.js