            data['thickness'] = thickness;
            }
          }

          var kerf = $('#kerf').val().replace(/[^\d.-]/g, '')
          if ($('#kerf-toggle').is(':checked') && kerf == '') {
            $('#kerf').addClass('ui-state-error');
            $('#kerf').siblings('.error-msg').append('<div>If kerf is turned on you need to enter a value for it.</div>');
            error_els.push('#kerf');
            has_error = true;
          } else {
            if ($('#kerf-toggle').is(':checked') && kerf