rem: document.getElementById("syncMail").checked = gSyncMail; 
add: var prefs = Components.classes["@mozilla.org/preferences;1"].getService(Components.interfaces.nsIPref); gSyncMail = prefs.GetBoolPref("mailnews.offline_sync_mail"); gSyncNews = prefs.GetBoolPref("mailnews.offline_sync_news"); gSendMessage = prefs.GetBoolPref("mailnews.offline_sync_send_unsent"); gWorkOffline = prefs.GetBoolPref("mailnews.offline_sync_work_offline"); document.getElementById("syncMail").checked = gSyncMail; 
context: function OnLoad(){	    if (window.arguments && window.arguments[0]) {        if (window.arguments[0].msgWindow) {            gParentMsgWindow = window.arguments[0].msgWindow;        }    }  	   		    doSetOKCancel(syncOkButton, syncCancelButton);	document.getElementById("syncMail").checked = gSyncMail;    document.getElementById("syncNews").checked = gSyncNews;    document.getElementById("sendMessage").checked = gSendMessage;    document.getElementById("workOffline").checked = gWorkOffline;    return true;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/d07e01570394851b43703ba0ab3d140cfcbc7728/msgSynchronize.js/buggy/mailnews/base/resources/content/msgSynchronize.js