/**
  * FormHandler::timeField()
  *
  * Create a timeField on the form
  *
  * @param string $title: The title of the field
  * @param string $name: The name of the field
  * @param string $validator: The validator which should be used to validate the value of the field
  * @param int $format: 12 or 24. Which should we use?
  * @param string $extra: CSS, Javascript or other which are inserted into the HTML tag
  * @return void
  * @access public
  * @author Teye Heimans
  */
 function timeField($title, $name, $validator = null, $required = null, $format = null, $extra = null)
 {
     require_once FH_INCLUDE_DIR . 'fields/class.SelectField.php';
     require_once FH_INCLUDE_DIR . 'fields/class.TimeField.php';
     // create a new timefield
     $fld = new TimeField($this, $name);
     if (!empty($validator)) {
         $fld->setValidator($validator);
     }
     if (!is_null($required)) {
         $fld->setRequired($required);
     }
     if (!empty($format)) {
         $fld->setHourFormat($format);
     }
     if (!empty($extra)) {
         $fld->setExtra($extra);
     }
     // register the field
     $this->_registerField($name, $fld, $title);
 }