/* Js for , Version=1775498514 */
 
$(function()
{
    var $replyForm  = $('#replyForm'),
        $commentBox = $('#commentBox');
    $replyForm.ajaxform({onSuccess: function(response)
    {
        if(response.result == 'success')
        {
            $.closeModal();
            if($.isFunction($.refreshCommentList))
            {
                setTimeout($.refreshCommentList, 200);
            }
        }
        if(response.reason == 'needChecking')
        {
            $replyForm.find('.captcha-box').html(Base64.decode(response.captcha)).removeClass('hide');
        }
    } });

    $commentBox.find('.pager').on('click', 'a', function()
    {
        $commentBox.load($(this).attr('href'));
        return false;
    });
});
