rem: calscreen = window.openDialog("chrome: 
add: var calscreen = window.openDialog("chrome: 
context: function changeScreenResolution()  {    var screenResolution = document.getElementById("screenResolution");    var userResolution = document.getElementById("userResolution");    var previousSelection = screenResolution.getElementsByAttribute("current", "true")[0];    if (screenResolution.value == "other")      {        // If the user selects "Other..." we bring up the calibrate screen dialog        var rv = { newdpi : 0 };        calscreen = window.openDialog("chrome://communicator/content/pref/pref-calibrate-screen.xul",                                       "_blank",                                       "modal,chrome,centerscreen,resizable=no,titlebar",                                      rv);        if (rv.newdpi != -1)           {            // They have entered values, and we have a DPI value back            var dpi = screenResolution.getAttribute( "dpi" );            setResolution ( rv.newdpi );            previousSelection.removeAttribute("current");            screenResolution.selectedItem.setAttribute("current", "true");          }        else          {            // They've cancelled. We can't leave "Other..." selected, so...            // we re-select the previously selected item.            screenResolution.selectedItem = previousSelection;          }      }    else if (!(screenResolution.value == userResolution.value))      {        // User has selected one of the hard-coded resolutions        userResolution.setAttribute("hidden", "true");        previousSelection.removeAttribute("current");        screenResolution.selectedItem.setAttribute("current", "true");      }  }
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/e774059904a47d9f619d269b6b4d3119ae88d797/pref-fonts.js/clean/xpfe/components/prefwindow/resources/content/pref-fonts.js