rem: markreadElement = document.getElementById("markread"); markreadElement.checked = nntpServer.markOldRead; 
add: markreadElement = document.getElementById("markread"); markreadElement.checked = nntpServer.markOldRead; 
context: function OnLoad(){	doSetOKCancel(OkButtonCallback, CancelButtonCallback);	if (window.arguments && window.arguments[0]) {        args = window.arguments[0].QueryInterface( Components.interfaces.nsINewsDownloadDialogArgs);            args.hitOK = false; /* by default, act like the user hit cancel */        args.downloadAll = false; /* by default, act like the user did not select download all */		var accountManager = Components.classes["@mozilla.org/messenger/account-manager;1"].getService(Components.interfaces.nsIMsgAccountManager);		server = accountManager.getIncomingServer(args.serverKey);		nntpServer = server.QueryInterface(Components.interfaces.nsINntpIncomingServer);		var downloadHeadersTitlePrefix = Bundle.GetStringFromName("downloadHeadersTitlePrefix");		var downloadHeadersInfoText1 = Bundle.GetStringFromName("downloadHeadersInfoText1");		var downloadHeadersInfoText2 = Bundle.GetStringFromName("downloadHeadersInfoText2");        var okButtonText = Bundle.GetStringFromName("okButtonText");		window.title = downloadHeadersTitlePrefix;        // this is not i18n friendly, fix this		var infotext = downloadHeadersInfoText1 + " " + args.articleCount + " " + downloadHeadersInfoText2;		setText('info',infotext);         var okbutton = document.getElementById("ok");        okbutton.setAttribute("value", okButtonText);        setText("newsgroupLabel", args.groupName);	}	numberElement = document.getElementById("number");	numberElement.value = nntpServer.maxArticles;	markreadElement = document.getElementById("markread");	markreadElement.checked = nntpServer.markOldRead;	return true;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/a24ffe4299da83b8595086d55466b8f10e68198d/downloadheaders.js/clean/mailnews/news/resources/content/downloadheaders.js