rem: var pref_string = obj.domain_pref.getAttribute('value'); 
add: var pref_string = obj.domain_pref.getAttribute('label'); 
context: function DomainAlreadyPresent(obj, domain_name, dup){  var errorTitle;  var errorMsg;  var pref_string = obj.domain_pref.getAttribute('value');  var found = false;  try {    var arrayOfPrefs = pref_string.split(',');    if (arrayOfPrefs)       for (var i = 0; i < arrayOfPrefs.length; i++) {        var str = arrayOfPrefs[i].replace(/ /g,"");        if (str == domain_name) {          dump("###ERROR DOMAIN ALREADY EXISTS\n");          errorTitle = document.getElementById("domainerrdlg").getAttribute("domainerrdlg_title");          if(dup)          errorMsg = document.getElementById("domainerrdlg").getAttribute("duperr");          else           errorMsg = document.getElementById("domainerrdlg").getAttribute("dualerr");          var errorMessage = errorMsg.replace(/@string@/, domain_name);          if (commonDialogsService)            commonDialogsService.Alert(window, errorTitle, errorMessage);          else            window.alert(errorMessage);          found = true;          break;        }//if    }//for    return found;  }//try  catch(ex){     return false;  }//catch}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/0b2dd2b2d2fd037df917e07645fa019a963332a5/pref-formatting.js/clean/mailnews/compose/prefs/resources/content/pref-formatting.js