rem:  if(currentNode){ while(currentNode.parentNode!=null){ if(currentNode.getAttribute("id") == "threadTree" ){ whichPane="threadTree" }  if(currentNode.getAttribute("id") == "folderTree"){  whichPane="folderTree" }  if(currentNode.getAttribute("id") == "messagepanebox"){  whichPane="messagepanebox" } 
add: var threadTree = GetThreadTree(); var folderTree = GetFolderTree(); var messagePane = GetMessagePane();  while (currentNode) { if (currentNode === threadTree || currentNode === folderTree || currentNode === messagePane) return currentNode; 
context: function WhichPaneHasFocus(){	var whichPane= "none";	currentNode = top.document.commandDispatcher.focusedElement;			if(currentNode){		while(currentNode.parentNode!=null){			if(currentNode.getAttribute("id") == "threadTree" ){ whichPane="threadTree" }						if(currentNode.getAttribute("id") == "folderTree"){  whichPane="folderTree" } 				if(currentNode.getAttribute("id") == "messagepanebox"){  whichPane="messagepanebox" }								currentNode = currentNode.parentNode;		}		}				return whichPane}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/d1efe1b174955c3aea7ff9f5cc29a9bd1d79725c/mail3PaneWindowCommands.js/clean/mailnews/base/resources/content/mail3PaneWindowCommands.js