add: if (smtpService.defaultServer && hostnameIsIllegal(gSmtpHostname.value)) { var alertTitle = window.parent.gBrandBundle.getString("brandShortName"); var alertMsg = window.parent.gPrefsBundle.getString("enterValidHostname"); var promptService = Components.classes["@mozilla.org/embedcomp/prompt-service;1"].getService(Components.interfaces.nsIPromptService); if (promptService) promptService.alert(window, alertTitle, alertMsg); else window.alert(alertMsg);  return false; }  
context: function onAdvanced(event){    // fix for bug #60647    // when the user presses "Advanced..." we save any changes    // they made so that the changes will show up in the advanced dialog    // and when they return from the advanced dialog, the changes they    // made won't be blown away.    //    // the only remaing problem is if the user "cancels" out of the    // account manager dialog, those changes will get saved.      // that is covered in bug #63825    onSave();    var args = {result: false};    window.openDialog('chrome://messenger/content/SmtpServerList.xul', 'smtp', 'modal,titlebar,chrome', args);    if (args.result) {        // this is the wrong way to do this.        dump("reloading panel...\n");        onLoad();    }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/100f9782b1094f77d32cac9222cb24fea537f5d4/am-smtp.js/clean/mailnews/base/prefs/resources/content/am-smtp.js