rem: newDate = new Date( gHeaderDateItemArray[dayIndex].getAttribute( "date" ) ); 
add: var newDate = new Date( gHeaderDateItemArray[dayIndex].getAttribute( "date" ) ); 
context: function weekViewHourClick( event ){   if( event.detail == 1 )   {      var dayIndex = event.target.getAttribute( "day" );      newDate = new Date( gHeaderDateItemArray[dayIndex].getAttribute( "date" ) );      newDate.setHours( event.target.getAttribute( "hour" ) );      gCalendarWindow.setSelectedDate( newDate );   }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/c4e5ed6737f6d36989ffc021cdbdb30dcd24cf44/calendar.js/clean/calendar/resources/content/calendar.js