add: var	theTab = document.getElementById(tabName); if (theTab) { theTab.setAttribute("selected", "true"); } 
context: function loadPage(thePage, searchStr){	var	content="", results="";	gSearchStr = "";	if (thePage == "find")	{		content="chrome://search/content/find.xul";		results="chrome://search/content/findresults.xul";	}	else if (thePage == "internet")	{		content="chrome://search/content/internet.xul";		results="chrome://search/content/internetresults.xul";		if ((searchStr) && (searchStr != null))		{			gSearchStr = searchStr;		}	}	else if (thePage == "mail")	{		content="about:blank";		results="about:blank";	}	else if (thePage == "addressbook")	{		content="about:blank";		results="about:blank";	}	if ((content != "") && (results != ""))	{		var	contentFrame = document.getElementById("content");		if (contentFrame)		{			contentFrame.setAttribute("src", content);		}		var	resultsFrame = document.getElementById("results");		if (resultsFrame)		{			resultsFrame.setAttribute("src", results);		}	}	return(true);}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/ddf595aba2bc0ea3655c803be7c3d4d223202a11/search.js/buggy/xpfe/components/search/resources/search.js