var Group = {
  validate_form: function(form) {
    var fields_desc = [
      { id: 'group_title', not_empty: true }
    ];

    return Validators.validate_fields(fields_desc).all();
  }
};

var GroupTopic = {
  validate_form: function(form) {
    var fields_desc = [
      { id: 'group_topic_kind', not_empty: true },
      { id: 'group_topic_subject', not_empty: true },
      { id: 'group_topic_message', not_empty: true }
    ];

    return Validators.validate_fields(fields_desc).all();
  }
};

var GroupMessage = {
  validate_form: function(form) {
    var fields_desc = [
      { id: 'group_message_subject', not_empty: true },
      { id: 'group_message_message', not_empty: true }
    ];

    return Validators.validate_fields(fields_desc).all();
  }
};
