rem: function GetNextMessage(currentMessage, nextFunction, startFromBeginning) 
add: function GetNextMessage(tree, currentMessage, nextFunction, startFromBeginning) 
context: function GetNextMessage(currentMessage, nextFunction, startFromBeginning){	var foundMessage = false;		var nextMessage = currentMessage.nextSibling;	while(nextMessage && (nextMessage != currentMessage))	{		if(nextFunction(nextMessage))		 break;		nextMessage = nextMessage.nextSibling;		/*If there's no nextMessage we may have to start from top.*/		if(!nextMessage && startFromBeginning)		{			dump('We need to start from the top\n');			var parent = currentMessage.parentNode;			nextMessage = parent.firstChild;		}	}	if(nextMessage)	{		var id = nextMessage.getAttribute('id');		dump(id + '\n');	}	else		dump('No next message\n');	return nextMessage;}
meta: 5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5459/1e7905fdd5a28cbf8cad4b73100aee826b5e2207/msgViewNavigation.js/buggy/mailnews/base/resources/content/msgViewNavigation.js