rem: var treeNode = document.getElementById("NC:SearchEngineRoot"); 
add: var treeNode = document.getElementById("searchengines"); 
context: function doCheckAll(activeFlag){	// get selected search engines	var treeNode = document.getElementById("NC:SearchEngineRoot");	if (!treeNode)	return(false);	var treeChildrenNode = null;	var numChildren = treeNode.childNodes.length;	for (var x = 0; x<numChildren; x++)	{		if (treeNode.childNodes[x].tagName == "treechildren")		{			treeChildrenNode = treeNode.childNodes[x];			break;		}	}	if (treeChildrenNode == null)	return(false);	var numEngines = treeChildrenNode.childNodes.length;	dump("doCheckAll():  " + numEngines + " engines.\n");	for (var x = 0; x<numEngines; x++)	{		var treeItem = treeChildrenNode.childNodes[x];		if (!treeItem)		{			dump("doCheckAll(): huh? treeItem is null.\n");			continue;		}		var checkedFlag = false;		if (treeItem.childNodes[0].childNodes[0].childNodes[0].checked == true)		{			checkedFlag = true;		}		else if (treeItem.childNodes[0].childNodes[0].childNodes[0].getAttribute("checked") == "1")		{			checkedFlag = true;		}		if (checkedFlag != activeFlag)		{			treeItem.childNodes[0].childNodes[0].childNodes[0].checked = activeFlag;			if (activeFlag)			{				treeItem.childNodes[0].childNodes[0].childNodes[0].setAttribute("checked", "1");			}			else			{				treeItem.childNodes[0].childNodes[0].childNodes[0].removeAttribute("checked");//				treeItem.childNodes[0].childNodes[0].childNodes[0].setAttribute("checked", "0");			}		}	}	dump("doCheckAll() done.\n");	return(true);}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/e796481a8fae2e00713b26dbcb7c982c76ba9876/internet.js/buggy/xpfe/components/search/resources/internet.js