function sendRating(url, data, pageScore) {
	jQuery.ajax({
	   type: 		"POST",
	   url:  		url,
	   data: 		"rs.result=json&"+data,
	   dataType: 	"json",
	   async: 		true,
	   cache: 		false,
	   context: 	pageScore,
	   success: 	function(msg){
		   jQuery(this.context).find('.score').removeClass('enabled');
			if (msg.accepted) {
				jQuery(this.context).find('.novotes').hide();
				jQuery(this.context).find('.hasvotes').show();
				jQuery(this.context).find('.votes').html(msg.votes);
				jQuery(this.context).find('.avgscore').html(msg.avgScore);
				jQuery(this.context).find('.average').attr('style', 'display: inline;' + 'width: ' + msg.percent + '%');
				jQuery(this.context).find('.confirm').css('visibility', 'visible');
				if (msg.age > 0) {
					document.cookie = msg.id + "=" + msg.rated + "; Max-age=" + msg.age;
				} else {
					document.cookie = msg.id + "=" + msg.rated;
				}
			} else {
				jQuery(this.context).find('.confirm').css('visibility', 'hidden');
			}
	   }
	 });
}
