function add_comment_action() {
    $('add_comment_link').style.display = 'none';
    Effect.Appear('new_comment_form');
    //time out used to improve new form showing
    setTimeout("$('new_comment_buttons').style.display = 'inline';", 200);
}

function cancel_add_comment_action() {
    $('new_comment_buttons').style.display = 'none';
    $('new_comment_form').setStyle({border: '',padding: '3px', display: 'none'});
    $('comment_errors_box').style.display = 'none';
    $('add_comment_link').style.display = '';
}

function new_comment_form_failure() {
    Element.show('comment_errors_box');
}