add: document.getElementById("menu_allow_online_check") .setAttribute("checked", gPrefs.getBoolPref(kPrefOnlineCheckAllowed)); 
context: function GetCurrentPrefs(){	// prefs	if ( cvPrefs == 0 )		cvPrefs = new Object;	cvPrefs.prefs = gPrefs;		// check "Show Name As" menu item based on pref	var menuitemID;	switch (gPrefs.getIntPref("mail.addr_book.lastnamefirst"))	{		case kFirstNameFirst:			menuitemID = 'firstLastCmd';			break;		case kLastNameFirst:			menuitemID = 'lastFirstCmd';			break;		case kDisplayName:		default:			menuitemID = 'displayNameCmd';			break;	}	var menuitem = top.document.getElementById(menuitemID);	if ( menuitem )		menuitem.setAttribute('checked', 'true');  // initialize phonetic   var showPhoneticFields =        gPrefs.getComplexValue("mail.addr_book.show_phonetic_fields",                                Components.interfaces.nsIPrefLocalizedString).data;  // show phonetic fields if indicated by the pref  if (showPhoneticFields == "true")    document.getElementById("cmd_SortBy_PhoneticName")            .setAttribute("hidden", "false");}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/796dbe88e2fb4b0d60b7706a36df03dd8bb15fd9/addressbook.js/buggy/mailnews/addrbook/resources/content/addressbook.js