rem:  var url = this.getCommandUrl("createcalendar"); url += "&allowdoublebook=1&set_calprops=1&subscribe=1"; 
add: this.assureLoggedIn(); var url = this.getCommandUrl( "createcalendar" ); url += ("&allowdoublebook=" + (bAllowDoubleBooking ? "1" : "0")); url += ("&set_calprops=" + (bSetCalProps ? "1" : "0")); url += ("&subscribe=" + (bAddToSubscribed ? "1" : "0")); 
context:     createCalendar:    function( calId, name )    {        try {//             this.assureLoggedIn();            var url = this.getCommandUrl("createcalendar");            url += "&allowdoublebook=1&set_calprops=1&subscribe=1";            url += ("&calid=" + encodeURIComponent(calId));            // xxx todo: name undocumented!            url += ("&name=" + encodeURIComponent(name));            // xxx todo: what about categories param???            this.issueSyncRequest(url + "&fmt-out=text%2Fxml", stringToXml);            this.m_userPrefs = null; // reread prefs            return this.getCalendarByCalId(this.userId + ":" + calId);        }        catch (exc) {            this.logError( exc );            throw exc;        }    },
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/c4f9cdeaecfeac45209d141d619bb5c7eb3827b4/calWcapSession.js/clean/calendar/providers/wcap/calWcapSession.js