
function addComment(formId)
{
    var options = {
        method     : 'post',
        parameters : $(formId).serialize(),
        onSuccess  : addCommentSuccess,
        onFailure  : addCommentFailure
    };

    new Ajax.Request('/comments/add', options);
}

function addCommentFailure(transport)
{
	alert('Внутрішня помилка при додаванні коментаря!');
}

function addCommentSuccess(transport)
{
	//$('bottom_form').style.display = 'none';	
	document.location.reload();
}


