Тест Отправки сообщения в топике

<script>
function ajaxSendForm(form){
$.ajax({
  url: form.attr('action'),
  dataType: "html",
  type: "POST",
  data: form.serialize(),
  success: function(response) {
    alert('success:'+response)
  },
    error:  function(response, str){
      for(var key in response) {
         alert('error:'+key+':'+response[key])
      }
     //alert('Возникла ошибка: ' + xhr.responseCode);
   }
});
}

var str='АБВГДЕЁЖЗИЙКЛМНОРСТ'; //Cтрока отправки;

    $(document).ready(function(){
       var form = $("#post");
       form.find('#main-reply').val(str);
       form.removeAttr('onsubmit');
       process_form(form[0]);alert(form.serialize());setTimeout(function(){ajaxSendForm(form)},560);

   });
</script>

Скриншот => http://s3.uploads.ru/ysZ6i.gif