rem: if (hasRelevanceFlag == true) 
add: if (hasRelevanceFlag) 
context: function doStop(){	var stopButtonNode = document.getElementById("stopbutton");    if (stopButtonNode)    {		stopButtonNode.setAttribute("style", "display: none;");    }	var searchButtonNode = document.getElementById("searchbutton");	if(searchButtonNode)	{		searchButtonNode.setAttribute("style", "display: inherit;");	}	// should stop button press also stop the load of the page in the browser? I think so. 	var progressNode = parent.document.getElementById("statusbar-icon");    if (progressNode)    {		progressNode.setAttribute("mode", "normal");    }	// stop any network connections    var internetSearchService = Components.classes[ISEARCH_PROGID].getService(nsIInternetSearchService);    var internetSearch = null;    if (internetSearchService)    {        internetSearchService.Stop();        internetSearch = internetSearchService.QueryInterface(nsIRDFDataSource);    }	// get various services    var rdf = Components.classes[RDFSERVICE_PROGID].getService(nsIRDFService);	var sortSetFlag = false;	// show appropriate column(s)	if ((rdf) && (internetSearch))	{    var navWindow = getNavigatorWindow();		var resultsTree = navWindow._content.document.getElementById("internetresultstree");		if( !resultsTree )			return(false);		var searchURL = resultsTree.getAttribute("ref");		if( !searchURL )				return(false);		var searchResource       = rdf.GetResource(searchURL, true);		var priceProperty        = rdf.GetResource("http://home.netscape.com/NC-rdf#Price", true);		var availabilityProperty = rdf.GetResource("http://home.netscape.com/NC-rdf#Availability", true);		var relevanceProperty    = rdf.GetResource("http://home.netscape.com/NC-rdf#Relevance", true);		var dateProperty         = rdf.GetResource("http://home.netscape.com/NC-rdf#Date", true);		var trueProperty         = rdf.GetLiteral("true");		var hasPriceFlag         = internetSearch.HasAssertion(searchResource, priceProperty, trueProperty, true);		var hasAvailabilityFlag  = internetSearch.HasAssertion(searchResource, availabilityProperty, trueProperty, true);		var hasRelevanceFlag     = internetSearch.HasAssertion(searchResource, relevanceProperty, trueProperty, true);		var hasDateFlag          = internetSearch.HasAssertion(searchResource, dateProperty, trueProperty, true);    var navWindow = getNavigatorWindow();		if(hasPriceFlag == true)		{			var colNode = navWindow._content.document.getElementById("PriceColumn");			if (colNode)			{				colNode.removeAttribute("style", "width: 0; visibility: collapse;");				if (sortSetFlag == false)				{					top._content.setInitialSort(colNode, "ascending");					sortSetFlag = true;				}			}		}		if (hasAvailabilityFlag == true)		{			colNode = navWindow._content.document.getElementById("AvailabilityColumn");			if (colNode)				colNode.removeAttribute("style", "width: 0; visibility: collapse;");		}		if (hasDateFlag == true)		{			colNode = navWindow._content.document.getElementById("DateColumn");			if (colNode)				colNode.removeAttribute("style", "width: 0; visibility: collapse;");		}		if (hasRelevanceFlag == true)		{			colNode = navWindow._content.document.getElementById("RelevanceColumn");			if (colNode)			{				colNode.removeAttribute("style", "width: 0; visibility: collapse;");				if (sortSetFlag == false)				{					navWindow._content.setInitialSort(colNode, "descending");					sortSetFlag = true;				}			}		}	}	if (sortSetFlag == false)	{		colNode = navWindow._content.document.getElementById("PageRankColumn");		if (colNode)			navWindow._content.setInitialSort(colNode, "ascending");	}	switchTab(0);}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/b1aee567a0f51e2787da9cdf81da6237e2f6b153/search-panel.js/clean/xpfe/components/search/resources/search-panel.js