rem: var category = aNode.getAttribute("id"); if ((!category) || (category == "")) { category="NC:SearchEngineRoot"; } else { category = "NC:SearchCategory?category=" + category; } debug("chooseCategory: '" + category + "'\n"); 
add: var category = !aNode.id ? "NC:SearchEngineRoot" : "NC:SearchCategory?category=" + aNode.id; 
context: function chooseCategory( aNode ){	var category = aNode.getAttribute("id");	if ((!category) || (category == ""))	{		category="NC:SearchEngineRoot";	}	else	{		category = "NC:SearchCategory?category=" + category;	}	debug("chooseCategory: '" + category + "'\n");	if (pref)	pref.SetCharPref( "browser.search.last_search_category", category );	else		debug("Unable to set browser.search.last_search_category pref.\n");	var treeNode = document.getElementById("searchengines");	if (treeNode)	{		treeNode.setAttribute( "ref", category );	}	loadEngines( category );	return(true);}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/d3e0de7b06190a2b947be90b94d6aff63487e60c/search-panel.js/clean/xpfe/components/search/resources/search-panel.js