var cal = getCalendars()[row]; 
var cal = gCalendars[row]; 
    onDoubleClick: function(event)    {        // We only care about left-clicks        if (event.button != 0)             return;        // Find the row clicked on        var tree = document.getElementById("agenda-tree");        var row = tree.treeBoxObject.getRowAt(event.clientX, event.clientY);        // If we clicked on a calendar, edit it, otherwise create a new one        var cal = getCalendars()[row];        if (!cal) {            ltnNewCalendar();        } else {            ltnEditCalendarProperties(cal);        }    }
5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5459/2289d8bc143211c25fb37aa74324ecdf1bc8296e/calendar-management.js/clean/calendar/lightning/content/calendar-management.js