rem: if (disableMode) { var radioId = radioElemPrefix + "_selectAccount"; var radioElement = document.getElementById(radioId); radioElement.setAttribute("disabled", "true"); radioId = radioElemPrefix + "_selectFolder"; radioElement = document.getElementById(radioId); radioElement.setAttribute("disabled", "true");  var picker = document.getElementById(folderPickerId); picker.setAttribute("disabled", "true"); picker = document.getElementById(accountPickerId); picker.setAttribute("disabled", "true"); } 
context: function SetFolderDisplay(pickerMode, disableMode,                          radioElemPrefix,                           accountPickerId,                           folderPickedField,                           folderPickerId){    if (!pickerMode)        pickerMode = gDefaultPickerMode;    switch (pickerMode)     {        case "0" :            var radioElemId = radioElemPrefix + "_selectAccount";            var radioGroupElement = document.getElementById(radioElemId);            radioGroupElement.setAttribute("checked", "true");            var folderPickedElement = document.getElementById(folderPickedField);            var uri = folderPickedElement.getAttribute("value");            var msgFolder = GetMsgFolderFromUri(uri);            SetFolderPicker(msgFolder.server.serverURI, accountPickerId);            SetPickerEnabling(accountPickerId, folderPickerId);            break;        case "1"  :            var radioElemId = radioElemPrefix + "_selectFolder";            var radioGroupElement = document.getElementById(radioElemId);            radioGroupElement.setAttribute("checked", "true");		    	            InitFolderDisplay(folderPickedField, folderPickerId);            SetPickerEnabling(folderPickerId, accountPickerId);            break;        default :            dump("Error in setting initial folder display on pickers\n");            break;    }    if (disableMode) {        var radioId = radioElemPrefix + "_selectAccount";        var radioElement = document.getElementById(radioId);        radioElement.setAttribute("disabled", "true");        radioId = radioElemPrefix + "_selectFolder";        radioElement = document.getElementById(radioId);        radioElement.setAttribute("disabled", "true");        var picker = document.getElementById(folderPickerId);        picker.setAttribute("disabled", "true");        picker = document.getElementById(accountPickerId);        picker.setAttribute("disabled", "true");    }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/8ad3fe502acb25be6cb114a172f56c8a079c3d34/am-copies.js/clean/mailnews/base/prefs/resources/content/am-copies.js