The following method always gives me an error even though the departure date field is always entered as greater than the arrival date.
if ( tmpDepartureDate <= tmpArrivalDate
|| new Date(tmpDepartureDate - tmpArrivalDate).getDate() > 30 )
{
application.beep();
var res = plugins.dialogs.showDialog( ‘Error: invalid date’,
‘Departure date must be greater than arrival date (but lesser than one month).’, ‘OK’);tmpDepartureDate = null;
}
enableButton();
Any thoughts here? TIA[/quote]