function Bartrewor2Comments_reply (commentId, commentAuthor) {
    var commentText = 'Odpověď pro <strong><a href="#' + commentId + '">' + commentAuthor.replace(/\t|\n|\r\n/g, "") + '</a></strong>:';

    commentAddFocus();
    document.getElementById('commentReply_textarea').value = document.getElementById('commentReply_textarea').value + commentText + "\r\n";
    commentAddFocus();
}

function Bartrewor2Comments_quote (commentId, commentAuthor, commentTextId) {
    var commentText = '<blockquote><strong><a href="#comment' + commentId + '">' + commentAuthor.replace(/\t|\n|\r\n/g, "") + '</a></strong>';
    commentText += document.getElementById(commentTextId).innerHTML + '</blockquote>';

    commentAddFocus();
    document.getElementById('commentReply_textarea').value = document.getElementById('commentReply_textarea').value.replace(/[\n]*$/g, "") + commentText + "\r\n";
    commentAddFocus();
}

function commentAddFocus() {
    document.getElementById('commentReply_textarea').focus();
}
