* event handler for checking and processing user input and
* for defining navigation
CASE event_id.
  WHEN 'regi'.
    navigation->goto_page( 'registration.htm' ) .
  WHEN 'book'.
    SELECT SINGLE * FROM scustom INTO application->custom
      WHERE id = custom-id
      AND name = custom-name.
    application->create_booking( ).
    navigation->goto_page( 'booking_ok.htm' ) .
  WHEN 'Zurueck'.
    navigation->set_parameter( 'wa1' ).
    navigation->goto_page( 'fill_booking.htm' ) .
  WHEN 'exit'.
    navigation->exit( 'http://www.fh-augsburg.de' ) .
ENDCASE.
