Overview
To make bookings more interactive, a timer can be used to refresh the bookings list while the user is making bookings and moving his mouse.
This requires changes mainly in the function that draws the table and timers need to be added to the code so that the redrawing function is called periodically.
drawResult
The function called drawResult is changed so that there is coloring depending on booking status and functionality for
making highlight bookings when the mouse is hovering over a booking slot.
bookPosition
The function called bookPosition is changed so that it can use a booking status variable.
refreshBookingList
The refreshBookingList function is called by the timer. The main difference is that the resource and bookingdate variables are global variables
updated by the processinputbox function. The processinputbox function does not call the refreshBookingList function directly, but relies on the timers to call the function.