rem: var startDate = document.getElementById( "start-datetime" ).value; var endDate = document.getElementById( "end-datetime" ).value;  if( startDate.getFullYear() == endDate.getFullYear() && startDate.getMonth() == endDate.getMonth() && startDate.getDay() == endDate.getDay() ) return( 0 );  else if ( endDate < startDate) 
add: if( gStartDate.getFullYear() == gEndDate.getFullYear() && gStartDate.getMonth() == gEndDate.getMonth() && gStartDate.getDay() == gEndDate.getDay() ) { if( getFieldValue( "all-day-event-checkbox", "checked" ) ) { return( -1 ) } else { return( 0 ); } } else if ( gEndDate < gStartDate) { 
context: function checkEndDate(){   var startDate = document.getElementById( "start-datetime" ).value;    var endDate = document.getElementById( "end-datetime" ).value;       if( startDate.getFullYear() == endDate.getFullYear() &&       startDate.getMonth() == endDate.getMonth() &&       startDate.getDay() == endDate.getDay() )      return( 0 );   else if ( endDate < startDate)      return -1;   else if (endDate > startDate)      return 1;}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/2fb940028be62885f99e91bef65b07ac24e2df1e/eventDialog.js/buggy/calendar/resources/content/eventDialog.js