add: document.getElementById("overrideGlobalPref").setAttribute("value", ""); if(directoriesList == "") document.getElementById("directoryServer").setAttribute("value", "none"); else document.getElementById("directoryServer").setAttribute("value", ""); 
context: function onSave(){  var override = document.getElementById("identity.overrideGlobalPref");  var autocomplete = document.getElementById("ldapAutocomplete");  var directoryServer = document.getElementById("identity.directoryServer");  var directoriesList =       document.getElementById("directoriesList").getAttribute('value');    switch(autocomplete.selectedItem.value)  {    case "0":      override.setAttribute('value', "");      break;    case "1":      override.setAttribute('value', true);      directoryServer.setAttribute("value", directoriesList);      break;  } }
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/bd468c0ddeed02897c0ce6e1cfb0841967f30cab/am-addressing.js/buggy/mailnews/base/prefs/resources/content/am-addressing.js