//refreshes the star indicators on mouse in+out
function refreshStars(value) {
	//get the path of the first star
	var newSrc = $('star_1').getAttribute('src').split('/');
	//throw away the filename
	newSrc.pop();
	//show active stars until selected rating
	for(i = 1; i <= value; i++) {
		$('star_' + i).setAttribute('src', newSrc.join('/') + '/rating_star.png');
	}
	//show inactive stars for the rest
	for(j = i; j <= 5; j++) {
		$('star_' + j).setAttribute('src', newSrc.join('/') + '/rating_star_off.png');
	}
}

//mootools does this about a thousand times smarter...
function saveStarValueTemp(value) {
	$('value').setAttribute('value', value);
}

//if mouse leaves without click (change of value), the stars have to be reset
function resetStars() {
	refreshStars($('value').getValue());
}

//refreshes the dependency list while uploading/editing a plugin's dependencies
function refreshDeps(text, liid) {
	if(text.value != '') {
		var depList = new Ajax.Updater('implicitDeps', 'http://www.esteak.net/getdependencies/' + text.value);
	} else {
		$('implicitDeps').innerHTML = '';
	}
}