function commment_vote(url,rating,comment_id) {
    $.getJSON(url, { json: "1", action: "comment", rating: rating, comment_id: comment_id },
        function(json){
            $('#votes_summ_'+comment_id).html(json.votes_summ);
            
            if (rating='+1') {
                $('#vote_buttons_plus_'+comment_id).addClass('plus_voted');
                $('#vote_buttons_minus_'+comment_id).addClass('minus_inactive');  
            } else {
                $('#vote_buttons_plus_'+comment_id).addClass('plus_inactive');
                $('#vote_buttons_minus_'+comment_id).addClass('minus_voted');                
            }
            
            $('#vote_buttons_plus_'+comment_id).removeAttr("href");
            $('#vote_buttons_minus_'+comment_id).removeAttr("href");
            
        }); 
                                                                                    
}

function setSmile( id, which ) {
    obj = document.getElementById(id);
    obj.value += which;
    obj.focus();
}
