// STARPOINT
// Copyright 2006 Martin Furuberg
var pic_fold = "img/det/";
function raise(num) {
	for (i=1; i<=num; i++) {
		document.getElementById("star" + i).src=pic_fold+'ico_point_3.gif';
	}
	for (n=num+1;n<=5;n++) {
		document.getElementById("star" + n).src=pic_fold+'ico_point_0.gif';
	}
}
function preset(point) {
	if (point%1 > 0) {
		for (s=1; s<=(Math.round(point)-1); s++) {
			document.getElementById("star" + s).src=pic_fold+'ico_point_2.gif';
		}
		for (t=(Math.round(point)+1); t<=5; t++) {
			document.getElementById("star" + t).src=pic_fold+'ico_point_0.gif';
		}
		document.getElementById("star" + Math.round(point)).src=pic_fold+'ico_point_1.gif'
	} else {
		for (s=1; s<=point; s++) {
			document.getElementById("star" + s).src=pic_fold+'ico_point_2.gif';
		}
		for (s=point+1; s<=5; s++) {
			document.getElementById("star" + s).src=pic_fold+'ico_point_0.gif';
		}
	}
}
// Please contact me first if you would like to use this script