add: newCalendar.name = cal_name;  
context: function doCreateCalendar(){    var cal_name = document.getElementById("calendar-name").value;    var cal_color = document.getElementById('calendar-color').color;    var type = document.getElementById('calendar-type').selectedItem.value;    var provider;    var uri;    if (type == 'local') {        provider = 'storage';        uri = 'moz-profile-calendar://';    } else {        uri = document.getElementById("calendar-uri").value;        var format = document.getElementById('calendar-format').selectedItem.value;        if (format == 'webdav')            provider = 'ics';        else            provider = 'caldav';    }            dump(cal_name + "\n");    dump(cal_color + "\n");    dump(uri + "\n");    dump(provider + "\n");    var calManager = getCalendarManager();    try {        var newCalendar = calManager.createCalendar(cal_name, provider, makeURL(uri));    } catch (ex) {        dump(ex);        return false;    }    calManager.registerCalendar(newCalendar);        calManager.setCalendarPref(newCalendar, 'color', cal_color);    return true;}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/0f0b74e4208604a7e12a5776bba2554d6c558251/calendarCreation.js/clean/calendar/resources/content/calendarCreation.js