function sampev.onShowDialog(dialogId, style, title, button1, button2, text)
if dialogId == 6370 then
rep_name, rep_id = text:match("{FFFFFF}Жалоба/Вопрос от% (%w+_%w+)%[(%d+)%]")
rep_vopros = rep_vopros:gsub('%{......%}','')
report_window_state.v = not...