add: var searchLocalSystem = document.getElementById("checkSearchLocalSystem"); if (searchLocalSystem) searchLocalSystem.disabled = gCurrentFolder.server.searchScope == nsMsgSearchScope.offlineMail; 
context: function updateSearchFolderPicker(folderURI) {     SetFolderPicker(folderURI, gFolderPicker.id);    // use the URI to get the real folder    gCurrentFolder =        RDF.GetResource(folderURI).QueryInterface(nsIMsgFolder);    setSearchScope(GetScopeForFolder(gCurrentFolder));}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/2a9c9cdac65ca5a30f114ba5d72b42024ac0822d/SearchDialog.js/buggy/mailnews/base/search/resources/content/SearchDialog.js