add:   if (aPageIndex != 0)	return(true);  var saveQueryButton = document.getElementById("saveQueryButton"); if (!saveQueryButton)	return(true);  var resultsTree = document.getElementById("Tree"); if( !resultsTree)	return(false); var ds = resultsTree.database; if (!ds)		return(false);  var	haveSearchRef = false;  var rdf = Components.classes["component: if (rdf)   rdf = rdf.QueryInterface(Components.interfaces.nsIRDFService); if (rdf) { var source = rdf.GetResource( "NC:LastSearchRoot", true); var childProperty; var target;   childProperty = rdf.GetResource("http: target = ds.GetTarget(source, childProperty, true); if (target)	target = target.QueryInterface(Components.interfaces.nsIRDFLiteral); if (target)	target = target.Value; if (target && target != "") { haveSearchRef = true; } }  if (haveSearchRef == true) saveQueryButton.removeAttribute("style", "visibility: collapse"); else	saveQueryButton.setAttribute("style", "visibility: collapse");  
context: function switchTab( aPageIndex ){  var deck = document.getElementById( "advancedDeck" );  deck.setAttribute( "index", aPageIndex );  return(true);}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/fb09b64bd1f97bedf4f8c81bd25c50911abb4c7c/search-panel.js/clean/xpfe/components/search/resources/search-panel.js