def draw_checkbox(f, id, flag, bitset, id_array_var)
      val       = f.object.send(:flags) || 0
      flag_val  = bitset.const_get(flag)
      tag(:input,
          type:     'checkbox',
          id:       id,
          name:     id,
          value:    flag_val,
          onChange: "Edgarj.sum_bitset(#{id_array_var})",
          checked:  (val & flag_val) != 0 )
    end
def draw_checkbox(f, id, flag, bitset, id_array_var)
      val       = f.object.send(:flags) || 0
      flag_val  = bitset.const_get(flag)
      tag(:input,
          type:     'checkbox',
          id:       id,
          name:     id,
          value:    flag_val,
          onChange: "Edgarj.sum_bitset(#{id_array_var})",
          checked:  (val & flag_val) != 0 )
    end
draw Edgarj flags specific checkbox