function highlight_empty() {
  var hl_class = 'highlight';
  jQuery('form input').each(function() {
    if (jQuery(this).val() == '' && jQuery(this).parent().prev().hasClass('required')) {
      jQuery(this).addClass(hl_class);
    }
  })

  // aantal personen check
  var persons_check = false;
  var radio = null;
  jQuery('form input[name="reservation[nb_persons]"]').each(function() {
    radio = jQuery(this);
    if (radio.is(":checked")) {
      persons_check = true;
    }
  });
  if (!persons_check && radio) {
    radio.parent().parent().addClass(hl_class)
  }

  // tijdstip check
  var ts_check = false;
  radio = null;
  jQuery('form input[name="reservation[time_id]"]').each(function(){
    radio = jQuery(this);
    if (radio.is(':checked')) {
      ts_check = true;
    }
  });
  if (!ts_check) {
    jQuery('#tijdstip').addClass(hl_class);
  }

  // mijnheer/mevrouw check
  var mm_check = false;
  radio = null;
  jQuery('form input[name="reservation[gender]"]').each(function(){
    radio = jQuery(this);
    if (radio.is(':checked')) {
      mm_check = true;
    }
  });
  if (!mm_check && radio) {
    radio.parent().parent().addClass(hl_class);
  }
}


