rem: var messages = GetSelectedMessages(); var numMessages = messages.length; 
context: function InitMarkReadMenuItem(){	var messages = GetSelectedMessages();	var numMessages = messages.length;	var compositeDS = GetCompositeDataSource("MarkMessageRead");	var property = RDF.GetResource('http://home.netscape.com/NC-rdf#IsUnread');	var areMessagesRead;	if(numMessages == 0)		areMessagesRead = false;	else	{		areMessagesRead = true;		for(var i = 0; i < numMessages; i++)		{			var result = compositeDS.GetTarget(messages[i], property, true);			result = result.QueryInterface(Components.interfaces.nsIRDFLiteral);			if(result.Value == "true")			{				areMessagesRead = false;				break;			}		}	}	var markReadMenuItem = document.getElementById("markReadMenuItem");	if(markReadMenuItem)		markReadMenuItem.setAttribute("checked", areMessagesRead);}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/0938bbb70031b70863a26099bd6eab59d9a14e34/mailWindowOverlay.js/clean/mailnews/base/resources/content/mailWindowOverlay.js