$(document).ready(function(){
   $('div#reservation-form').hide();
   
   $('input.date').datepicker({
       dateFormat: 'dd/mm/yy'
   });
   
   $('a#reservation-link').click(function() {
       $(this).hide();
       $('div#reservation-form').slideDown();
       return false;
   })
   
   $('a#cancel').click(function(){
      $('div#reservation-form').slideUp();
      $('a#reservation-link').show();
      return false; 
   });
   
  /*$('input[type="submit"]').click(function() {
      var data = $('form#BookingBookCourseForm').serialize();
      $.ajax({
          type: 'post',
          url: '/courses/book_course',
          data: data,
          success: function() {alert('ok');}
      });
      return false;
   });*/
});
