rem: var radioElemId = radioElemPrefix + "_selectFolder"; var radioGroupElement = document.getElementById(radioElemId); radioGroupElement.setAttribute("checked", "true"); 
add: selectFolderRadioElem.setAttribute("checked", "true"); selectAccountRadioElem.setAttribute("checked", "false");  if (disableMode) { selectAccountRadioElem.setAttribute("disabled","true"); selectFolderRadioElem.setAttribute("disabled","true"); } else { selectAccountRadioElem.removeAttribute("disabled"); selectFolderRadioElem.removeAttribute("disabled"); } 
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: 5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5459/efe9ab34a1e3290918d15b95072c5eebdf7afef0/am-copies.js/buggy/mailnews/base/prefs/resources/content/am-copies.js