function starsRate (points, link_id)
{
	// Starte den AJAX Event
	/*new Ajax.Request ('/ajax-stars-rating.html', {
		method:'post',
		postBody: 'points='+points+'&link_id='+link_id,
		onSuccess: function (e) {
			if(e.responseText==0) {
				alert('BEREITS BEWERTE !!!'); return 0;
			}
			data = e.responseText.split('|');
			
			// Setze die Sterne neu
			$('current-rating').style.width = (data[1]*30) + 'px';
			
			// Setze die Sterne auf grün
			$('current-rating').style.backgroundPosition = 'left center';
			
			// deaktiviere weitere bewertung
			var tokill = document.getElementsByClassName('star_'+link_id);
			
			for(i=0;i<tokill.length;i++) tokill[i].remove();
		}
		
	});*/
	$('stars_rating').value = points;
	$('current-rating').style.width = (points*30) + 'px';
	$('current-rating').style.backgroundPosition = 'left center';
}

function starsRate2 (points)
{
	$('current-rating').style.width = (points*30) + 'px';
	$('star_points').value = points;
}