window.openDialog('chrome: 'itsalltext_preferences', "chrome,titlebar,toolbar,centerscreen,modal"); 
var optionsURL = 'chrome: /* This code is borrowed from chrome: about line 980 It fixes the problem with Macs not getting a close button. */ var features; try { var prefs = Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefBranch); instantApply = prefs.getBoolPref("browser.preferences.instantApply"); features = "chrome,titlebar,toolbar,centerscreen" + (instantApply ? ",dialog=no" : ",modal"); } catch (e) { features = "chrome,titlebar,toolbar,centerscreen,modal"; } window.openDialog(optionsURL, "", features); 
    that.openPreferences = function() {        window.openDialog('chrome://itsalltext/chrome/preferences.xul',                          'itsalltext_preferences',                          "chrome,titlebar,toolbar,centerscreen,modal");    };
4040	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/4040/e74de2504950903c37a3573349985a3d572918a5/itsalltext.js/buggy/chrome/content/itsalltext.js