function load_replies(id)
{
    var url = 'get_replies.php';
    var params = 'id=' + id;
    var _ajax = new Ajax.Updater(
                {success: 'load_replies'+id}, url, {method: 'get', parameters: params, onFailure: reportError});

}

function reportError(request) {
        $F('AjaxReply') =  "Error";
}

function setScore(mode, id)
{
    var url = 'set_score.php';
    var params = 'mode=' + mode + '&id=' + id;
    var _ajax = new Ajax.Updater(
            {success: 'scoreResult'+id}, url, {method: 'get', parameters: params, onFailure: reportError});
}

function getFullComment(id)
{
    var url = 'get_comments.php';
    var params = 'id=' + id;
    var _agax = new Ajax.Updater(
            {success: 'snippet'+id}, url,  {method: 'get', parameters: params, onFailure: reportError});
}
