function RatingChange(group, object, direction)
{
	var data = {};
	data.group = group;
	data.object = object;
	data.direction = direction;
	var data_string = JSON.stringify(data);
	$.post(window.location+'/', {func: 'RatingChange', data: data_string}, RatingChangeResult, 'json');
}
function RatingChangeResult(result)
{
	$('#arrows_'+result.group+'_'+result.object).empty();
	$('#rating_'+result.group+'_'+result.object).html(parseInt($('#rating_'+result.group+'_'+result.object).html()) + parseInt(result.direction));
	if (parseInt($('#rating_'+result.group+'_'+result.object).html()) > 0)
		$('#rating_'+result.group+'_'+result.object).css('color', '#93c118');
	else if (parseInt($('#rating_'+result.group+'_'+result.object).html()) < 0)
		$('#rating_'+result.group+'_'+result.object).css('color', '#c36f09');
	else
		$('#rating_'+result.group+'_'+result.object).css('color', 'black');
}
