rem: var nextMessage = GetNextMessage(tree, currentMessage, nextFunction, nextResourceFunction, nextThreadFunction, startFromBeginning);  
add: var nextMessage = msgNavigationService.FindNextMessage(type, tree, currentMessage, RDF, document, startFromBeginning, messageView.showThreads); 
context: function GoNextMessage(nextFunction, nextResourceFunction, nextThreadFunction, startFromBeginning){	var tree = GetThreadTree();		var selArray = tree.selectedItems;	var length = selArray.length;	if ( selArray && ((length == 0) || (length == 1)) )	{		var currentMessage;		if(length == 0)			currentMessage = null;		else			currentMessage = selArray[0];		var nextMessage = GetNextMessage(tree, currentMessage, nextFunction, nextResourceFunction, nextThreadFunction, startFromBeginning);		//Only change the selection if there's a valid nextMessage		if(nextMessage && (nextMessage != currentMessage))			ChangeSelection(tree, nextMessage);	}}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/d04174bf7b6b57f1c23923c2a9cbcf1223681cb5/msgViewNavigation.js/clean/mailnews/base/resources/content/msgViewNavigation.js