rem: function checkSearchProgress( aSearchURL ) 
add: function checkSearchProgress() 
context: function checkSearchProgress( aSearchURL ){	var	activeSearchFlag = false;	var	resultsTree = top._content.document.getElementById("internetresultstree");	var	enginesBox = top._content.document.getElementById("engineTabs");	if( !resultsTree || !enginesBox )	{			doStop();		return (activeSearchFlag);	}	var treeref = resultsTree.getAttribute("ref");	if( aSearchURL )	{		resultsTree.setAttribute( "ref", aSearchURL );		treeref = aSearchURL;	}	var ds = resultsTree.database;	if ( treeref && ds )	{		try		{			var rdf = Components.classes["component://netscape/rdf/rdf-service"].getService();			if (rdf)   rdf = rdf.QueryInterface(Components.interfaces.nsIRDFService);			if (rdf)			{				var source = rdf.GetResource( treeref, true);				var loadingProperty = rdf.GetResource("http://home.netscape.com/NC-rdf#loading", true);				var target = ds.GetTarget(source, loadingProperty, true);				if (target)	target = target.QueryInterface(Components.interfaces.nsIRDFLiteral);				if (target)	target = target.Value;				if (target == "true")					activeSearchFlag = true;			}		}		catch(ex)		{		}	}	if( activeSearchFlag )	{		setTimeout("checkSearchProgress(null)", 1000);	}	else	{		//window.frames["sidebar-content"].doStop();		doStop();	}  	return(activeSearchFlag);}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/6a80dfc41c74ac5b49360af43d1f736a30d98b45/search-panel.js/clean/suite/common/search/search-panel.js