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: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/e6d5f09679100403735cd2aab479795aa680da53/SearchDialog.js/clean/mailnews/base/search/resources/content/SearchDialog.js