rem:  var amPmItem = null; var hours12 = null;  if( oeTimePicker.isTimeAm( oeTimePicker.gSelectedTime ) ) { amPmItem = document.getElementById( "oe-time-picker-am-box" ); hours12 = hours24; } else { amPmItem = document.getElementById( "oe-time-picker-pm-box" ); hours12 = hours24 - 12; }  oeTimePicker.selectAmPmItem( amPmItem ); 
context: oeTimePicker.onpopupshowing = function( popup ){   // remember the popup       oeTimePicker.gPopup = popup;      // if there is a Date object in the popup item's value attribute, use it,   // otherwise use Now.      var inputTime = oeTimePicker.gPopup.getAttribute( "value" );      if( inputTime )   {      oeTimePicker.gSelectedTime = new Date( inputTime );   }   else   {      oeTimePicker.gSelectedTime = new Date();   }         // Select the AM or PM item based on whether the hour is 0-11 or 12-23       var hours24 = oeTimePicker.gSelectedTime.getHours();      var amPmItem = null;   var hours12 = null;   if( oeTimePicker.isTimeAm( oeTimePicker.gSelectedTime ) )   {      amPmItem = document.getElementById( "oe-time-picker-am-box" );      hours12 = hours24;   }   else   {      amPmItem = document.getElementById( "oe-time-picker-pm-box" );      hours12 = hours24 - 12;   }      oeTimePicker.selectAmPmItem( amPmItem );      // select the hour item      var hourItem = document.getElementById( "oe-time-picker-hour-box-" + hours12 );   oeTimePicker.selectHourItem( hourItem );    // Show the five minute view if we are an even five minutes, one minute    // otherwise     var minutesByFive = oeTimePicker.calcNearestFiveMinutes( oeTimePicker.gSelectedTime );      if( minutesByFive == oeTimePicker.gSelectedTime.getMinutes() )   {      oeTimePicker.clickLess();   }   else   {      oeTimePicker.clickMore();   }}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/eccfe24949238ab11afd71e280a2c50fe7ee3ea0/timepicker.js/buggy/calendar/resources/content/timepicker/timepicker.js