	votes = new Array();
	votes[0]='Nota 1';
	votes[1]='Nota 2';
	votes[2]='Nota 3';
	votes[3]='Nota 4';
	votes[4]='Nota 5';
	
	stars = new Array();
	stars[0]='vote1';
	stars[1]='vote2';
	stars[2]='vote3';
	stars[3]='vote4';
	stars[4]='vote5';
	
function overstar(index,star){
	//overtext.innerHTML=votes[index];
	for(i=0;i<=index;i++){
		var obj = document.getElementById(stars[i]);
		obj.src="img/stars/gold-star.gif";
	}
}

function outstar(star){
	star.src="img/stars/silver-star.gif";
	//overtext.innerHTML="Voteaza:";
	for(i=0;i<5;i++){
		var obj = document.getElementById(stars[i]);
		obj.src="img/stars/silver-star.gif";
	}
}

function stardb(stars){
	var location = "" + window.location;
	var index = location.indexOf("#");
	if(index != -1){
		location = location.substring(0, index);
	}
	location = location + "/" + stars;
	
	window.location = location;
}

