function reserveCourses()
 {
     $data = JRequest::get("post");
     if (isset($data["excursions"])) {
         $reservedItem = UserDataService::addExcursions($data["excursions"]);
     }
     if ($data["excursionRedirect"] == 1) {
         $this->setRedirect(JRoute::_('index.php?option=com_jhotelreservation&task=hotels.searchHotels', false));
     } else {
         $this->setRedirect(JRoute::_('index.php?option=com_jhotelreservation&task=excursionslisting.searchExcursions&excursion_type=excursions&excursionRedirect=1', false));
     }
 }