	function voting(object, stylePlain, styleHover) {
		tab = object.id.split(':');
		i = 0;
		while(true) {
			star = document.getElementById(tab[0] + ':' + i);
			if (star != null) {
				if (i <= tab[1]) {
					star.originalClassName = star.className;
					star.className = styleHover;
				} else {
					star.originalClassName = star.className;
					star.className = stylePlain;
				}		
			} else {
				break;
			}
			i++;
		}
	}
	function resetVoting(object) {
		tab = object.id.split(':');
		i = 0;
		while(true) {
			star = document.getElementById(tab[0] + ':' + i);
			if (star != null) {
				star.className = star.originalClassName;
			} else {
				break;
			}
			i++;
		}
	}
	
	function openWithFeedback(url) {
		child = window.open(url, 'popup', 
				'menubar=no, toolbar=no, location=no, scrollbars=no, resizable=yes, status=no, width=824, height=654');
	}

	function feedback() {
		try {
			if (opener.top.location == opener.location) {
				opener.location.reload();
			} else {
				opener.top.location.reload();
			}
		} catch (e) {
			// do nothing, the page was caught on cross-site scripting
		}
	}
	