null (function(event) { if (!document.documentElement.cancelDialog()) event.preventDefault(); }) (screen.availLeft + screen.availWidth)) newX = (screen.availLeft + screen.availWidth) - window.outerWidth - 20; if (newY < screen.availTop) newY = screen.availTop + 20; if ((newY + window.outerHeight) > (screen.availTop + screen.availHeight)) newY = (screen.availTop + screen.availHeight) - window.outerHeight - 60; window.moveTo( newX, newY ); ]]> 0 ? xOffset : 0; yOffset = yOffset > 0 ? yOffset : 0; window.moveTo(xOffset, yOffset); ]]> // see bug 63370 for details var localeService = Components.classes["@mozilla.org/intl/nslocaleservice;1"] .getService(Components.interfaces.nsILocaleService); var stringBundleService = Components.classes["@mozilla.org/intl/stringbundle;1"] .getService(Components.interfaces.nsIStringBundleService); var bundleURL = "chrome://global/locale/dialog.properties"; this._mStrBundle = stringBundleService.createBundle(bundleURL, localeService.getApplicationLocale()); } return this._mStrBundle; ]]> if (!event.getPreventDefault()) this.cancelDialog();