add:   var showPhoneticFields = gPrefs.getComplexValue("mail.addr_book.show_phonetic_fields", Components.interfaces.nsIPrefLocalizedString).data;  if (showPhoneticFields == "true") document.getElementById("cmd_SortBy_PhoneticName") .setAttribute("hidden", "false");  
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');}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/442cfa1ba0a5e1409c99dbfef9fd4ea6d333fe11/addressbook.js/clean/mailnews/addrbook/resources/content/addressbook.js