function vote_comment(comment_id, point)
{
	var link = "/files/vote_comment/"+comment_id+"/"+point;
	
	document.getElementById('votelinkp'+comment_id).onclick = null;
	document.getElementById('votelinkm'+comment_id).onclick = null;
	
	if (point == -1) $('img_votelinkm'+comment_id).src = '/data/i/minus1.gif';
	if (point == 1) $('img_votelinkp'+comment_id).src = '/data/i/plus1.gif';

	var req = new Request({
		url: link,
		onSuccess: function(txt){
			$('rating'+comment_id).set('text', txt);
		}
	});
	req.send();
}
