Added Jquery and changed javascript functions to use jquery. Added datepicker for entering dates.