rem: function openHelp(contentPack, topic) {  var window = locateHelpWindow(contentPack);  if (window) {  window.focus(); window.displayTopic(topic); } else {  const params = Components.classes["@mozilla.org/embedcomp/dialogparam;1"] .createInstance(Components.interfaces.nsIDialogParamBlock); params.SetNumberStrings(2); params.SetString(0, contentPack); params.SetString(1, topic); const ww = Components.classes["@mozilla.org/embedcomp/window-watcher;1"] .getService(Components.interfaces.nsIWindowWatcher); ww.openWindow(null, "chrome: } 
add: function openHelp(topic, contentPack) {    var cp = contentPack || helpFileURI;   var topWindow = locateHelpWindow(cp);  if ( topWindow ) {  topWindow.focus(); topWindow.displayTopic(topic); } else {  const params = Components.classes["@mozilla.org/embedcomp/dialogparam;1"] .createInstance(Components.interfaces.nsIDialogParamBlock); params.SetNumberStrings(2); params.SetString(0, cp); params.SetString(1, topic); const ww = Components.classes["@mozilla.org/embedcomp/window-watcher;1"] .getService(Components.interfaces.nsIWindowWatcher); ww.openWindow(null, "chrome: } 
context: function openHelp(contentPack, topic) {    // Try to find previously opened help for content pack.    var window = locateHelpWindow(contentPack);        if (window) {        // Open topic in existing window.        window.focus();        window.displayTopic(topic);    } else {        // Open topic in new window.        const params = Components.classes["@mozilla.org/embedcomp/dialogparam;1"]            .createInstance(Components.interfaces.nsIDialogParamBlock);        params.SetNumberStrings(2);        params.SetString(0, contentPack);        params.SetString(1, topic);        const ww = Components.classes["@mozilla.org/embedcomp/window-watcher;1"]            .getService(Components.interfaces.nsIWindowWatcher);        ww.openWindow(null, "chrome://help/content/help.xul", "_blank", "chrome,all,dialog=no", params);    }}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/ab94c471e12fc8cde3a4f3ad844db21a5fb5970f/contextHelp.js/buggy/toolkit/components/help/content/contextHelp.js