rem: document.getElementById("categories").value = gCategoryList.join(","); 
add: document.getElementById("calendar.categories.names").value = gCategoryList.join(","); 
context:     updateCategoryList: function () {        gCategoryList.sort();        document.getElementById("categories").value = gCategoryList.join(",");        var listbox = document.getElementById("categorieslist");        listbox.clearSelection();        document.getElementById("editCButton").disabled = "true";        document.getElementById("deleteCButton").disabled = "true";        while (listbox.lastChild.id != "categoryColumns")            listbox.removeChild(listbox.lastChild);        for (var i=0; i < gCategoryList.length; i++) {            var newListItem = document.createElement("listitem");            var categoryName = document.createElement("listcell");            categoryName.setAttribute("id", gCategoryList[i]);            categoryName.setAttribute("label", gCategoryList[i]);            var categoryNameFix = this.fixName(gCategoryList[i]);            var categoryColor = document.createElement("listcell");            try {                var colorCode = categoryPrefBranch.getCharPref(categoryNameFix);                categoryColor.setAttribute("id", colorCode);                categoryColor.setAttribute("style","background-color: "+colorCode+';');            } catch (ex) {                categoryColor.setAttribute("label", noneLabel);            }             newListItem.appendChild(categoryName);            newListItem.appendChild(categoryColor);            listbox.appendChild(newListItem);        }    },
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/d637ae6ad43674a7a647b13f316377eb2b3f34c2/categories.js/clean/calendar/base/content/preferences/categories.js