rem: else {   var mailnewsEnableMapi = document.getElementById("mailnewsEnableMapi"); var mailnewsEnableNews = document.getElementById("mailnewsEnableNews");  if (parent.mapiPref.isDefaultMailClient) mailnewsEnableMapi.setAttribute("checked", "true"); else mailnewsEnableMapi.setAttribute("checked", "false");  if (mailnewsEnableNews) { if (parent.mapiPref.isDefaultNewsClient) mailnewsEnableNews.setAttribute("checked", "true"); else mailnewsEnableNews.setAttribute("checked", "false"); } } 
add: }  var mailnewsEnableMapi = document.getElementById("mailnewsEnableMapi"); var mailnewsEnableNews = document.getElementById("mailnewsEnableNews");  if (parent.mapiInitialized) {  mailnewsEnableMapi.checked = parent.mapiPref.isDefaultMailClient; mailnewsEnableNews.checked = parent.mapiPref.isDefaultNewsClient; } mailnewsEnableMapi.disabled = parent.mapiDisabled; mailnewsEnableNews.disabled = parent.newsDisabled; 
context: function mailnewsOverlayStartup() {    mailnewsOverlayInit();    if (!("mapiPref" in parent)) {        parent.mapiPref = new Object;        parent.mapiPref.isDefaultMailClient =                document.getElementById("mailnewsEnableMapi").checked;                var mailnewsEnableNews = document.getElementById("mailnewsEnableNews");         if (mailnewsEnableNews)          parent.mapiPref.isDefaultNewsClient = mailnewsEnableNews.checked;    }    else {         // when we switch between different panes        // set the checkbox based on the saved state        var mailnewsEnableMapi = document.getElementById("mailnewsEnableMapi");        var mailnewsEnableNews = document.getElementById("mailnewsEnableNews");                 if (parent.mapiPref.isDefaultMailClient)            mailnewsEnableMapi.setAttribute("checked", "true");        else            mailnewsEnableMapi.setAttribute("checked", "false");                if (mailnewsEnableNews)        {          if (parent.mapiPref.isDefaultNewsClient)             mailnewsEnableNews.setAttribute("checked", "true");          else             mailnewsEnableNews.setAttribute("checked", "false");        }    }}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/e809385aa0a88c0df640df244f8a706bc9b61141/pref-mailnewsOverlay.js/clean/mailnews/mapi/resources/content/pref-mailnewsOverlay.js