rem: treeItem.setAttribute( "onclick" , "unifinderClickEvent(event)" ); 
context: function setUnifinderEventTreeItem( treeItem, calendarEvent )   {      treeItem.calendarEvent = calendarEvent;      treeItem.setAttribute( "eventId", calendarEvent.id );      treeItem.setAttribute( "onmouseover", "changeToolTipTextForEvent( event )" );      treeItem.setAttribute( "ondblclick" , "unifinderDoubleClickEvent(event)" );      treeItem.setAttribute( "onclick" , "unifinderClickEvent(event)" );      treeItem.setAttribute( "calendarevent", "true" );      treeItem.setAttribute( "id", "search-unifinder-treeitem-"+calendarEvent.id );      var treeRow = document.createElement( "treerow" );      var treeCellTitle     = document.createElement( "treecell" );      var treeCellStartdate = document.createElement( "treecell" );      var treeCellEnddate   = document.createElement( "treecell" );      var treeCellCategories = document.createElement( "treecell" );      var now = new Date();            var thisMorning = new Date( now.getFullYear(), now.getMonth(), now.getDate(), 0, 0, 0 );      if(treeItem.getElementsByTagName( "treerow" )[0])        treeItem.removeChild( treeItem.getElementsByTagName( "treerow" )[0] );      if( calendarEvent.title == "" )         var titleText = "Untitled";      else           var titleText = calendarEvent.title;      treeCellTitle.setAttribute( "label", titleText );      var eventStartDate = getNextOrPreviousRecurrence( calendarEvent );      var eventEndDate = new Date( calendarEvent.end.getTime() );      var startDate = formatUnifinderEventDate( eventStartDate );      var startTime = formatUnifinderEventTime( eventStartDate );      var endTime  = formatUnifinderEventTime( eventEndDate );            if( calendarEvent.allDay )      {         startText = "All day " + startDate;         endText = "All day " + startDate;      }      else      {         startText = startDate + " " + startTime;         endText = startDate + " " + endTime;      }            treeCellStartdate.setAttribute( "label", startText );      treeCellEnddate.setAttribute( "label", endText );      treeCellCategories.setAttribute( "label", calendarEvent.categories );      treeRow.appendChild( treeCellTitle );      treeRow.appendChild( treeCellStartdate );      treeRow.appendChild( treeCellEnddate );      treeRow.appendChild( treeCellCategories );      treeItem.appendChild( treeRow );}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/b3318ba732d90edfbd2663fc6138503d1a313074/unifinder.js/buggy/calendar/resources/content/unifinder.js