function rate(numero){
if (numero.length>1){
var whole=numero.substring(0,1);
	if (numero.substring(numero.length-1, numero.length)=="5"){var half="1"};
	else{var half="0"};
}
else{var whole=numero};
whole=parseInt(whole);
if (half){var empty=4-whole};
else{var empty=5-whole};

for (i=0; i<whole; i++){
document.write("<IMG SRC=\"../images/fullstar.gif\">");
}
if (half){
document.write("<IMG SRC=\"../images/halfstar.gif\">");
}
if (empty){
for (i=0; i<empty; i++){
document.write("<IMG SRC=\"../images/nostar.gif\">");
}	}

}
