rem: 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"); 
add: var prefs = Components.classes["@mozilla.org/preferences-service;1"].getService(Components.interfaces.nsIPrefBranch); 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"); 
context: function OnLoad(){	    if (window.arguments && window.arguments[0]) {        if (window.arguments[0].msgWindow) {            gParentMsgWindow = window.arguments[0].msgWindow;        }    }  	   		    doSetOKCancel(syncOkButton, syncCancelButton);    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;    document.getElementById("syncNews").checked = gSyncNews;    document.getElementById("sendMessage").checked = gSendMessage;    document.getElementById("workOffline").checked = gWorkOffline;    return true;}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/faf03ce445712b372523f881cc3144cfadc7a611/msgSynchronize.js/clean/mailnews/base/resources/content/msgSynchronize.js