rem:  var firstMenuitem = getFirstItemByTag(gFolderPicker, "menuitem"); gFolderPicker.selectedItem = firstMenuitem;  
add:  var firstItem = getFirstItemByTag(gFolderPicker, "menu"); folderURI = firstItem.id; 
context: function selectFolder(folder) {    var items;    if (!folder) {        // walk folders to find first menuitem        var firstMenuitem = getFirstItemByTag(gFolderPicker, "menuitem");        gFolderPicker.selectedItem = firstMenuitem;    } else {        // the URI of the folder is in the value attribute of the menuitem        var folderResource =            folder.QueryInterface(Components.interfaces.nsIRDFResource);        var elements =            gFolderPicker.getElementsByAttribute("value", folderResource.Value);        if (elements && elements.length)            gFolderPicker.selectedItem = elements[0];    }    updateSearchFolderPicker()}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/b8cb23a7377602a32cd7ad2f87b1bc5941857e4e/SearchDialog.js/clean/mailnews/base/search/resources/content/SearchDialog.js