var date; try { date = aComLine.handleFlagWithParam("showdate", false); } catch(ex) {} if (date) { currentView().goToDay(jsDateToDateTime(new Date(date))); 
for each (var flag in flagsToProcess) { var param = comLine.handleFlagWithParam(flag, false);  switch (flag) { case "showdate": currentView().goToDay(jsDateToDateTime(new Date(param))); break; case "subscribe": case "url":     var uri = comLine.resolveURI(param); var cal = getCalendarManager().createCalendar("ics", uri); getCalendarManager().registerCalendar(cal);   var fullPathRegEx = new RegExp("([^/:]+)[.]ics$"); var prettyName = param.match(fullPathRegEx);  var name; if (prettyName && prettyName.length >= 1) { name = decodeURIComponent(prettyName[1]); } else { name = calGetString("calendar", "untitledCalendarName"); } cal.name = name; break; default:  break; } 
function handleCommandLine(aComLine) {    var calurl;    try {        calurl = aComLine.handleFlagWithParam("subscribe", false);    } catch(ex) {}    if (calurl) {        var uri = aComLine.resolveURI(calurl);        var cal = getCalendarManager().createCalendar('ics', uri);        getCalendarManager().registerCalendar(cal);        // Strip ".ics" from filename for use as calendar name, taken from         // calendarCreation.js        var fullPathRegex = new RegExp("([^/:]+)[.]ics$");        var prettyName = calurl.match(fullPathRegex);        var name;        if (prettyName && prettyName.length >= 1) {            name = decodeURIComponent(prettyName[1]);        } else {            name = calGetString("calendar", "untitledCalendarName");        }        cal.name = name;    }    var date;    try {        date = aComLine.handleFlagWithParam("showdate", false);    } catch(ex) {}    if (date) {        currentView().goToDay(jsDateToDateTime(new Date(date)));    }}
5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5459/68679a57f72a67058a13c27a85c2d20f5a2e8738/calendar.js/buggy/calendar/resources/content/calendar.js