add: if (tabName == gTabName)	return(true); gTabName = tabName;  
context: function loadPage(thePage, searchStr){	var	content="", results="";	var	tabName="";	gSearchStr = "";	if (thePage == "find")	{		tabName="findTab";		content="chrome://search/content/find.xul";		results="chrome://search/content/findresults.xul";	}	else if (thePage == "internet")	{		tabName="internetTab";		content="chrome://search/content/internet.xul";		results="chrome://search/content/internetresults.xul";		if ((searchStr) && (searchStr != null))		{			gSearchStr = searchStr;		}	}	else if (thePage == "mail")	{		tabName="mailnewsTab";		content="about:blank";		results="about:blank";	}	else if (thePage == "addressbook")	{		tabName="addressbookTab";		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);		}		var	theTab = document.getElementById(tabName);		if (theTab)		{			theTab.setAttribute("selected", "true");		}	}	return(true);}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/08fb22a820db76977f7c4f5d2541c1c6bb4f8525/search.js/buggy/xpfe/components/search/resources/search.js