function setStarClassName ( teammemberId, cursor, star1, star2, star3, star4, star5 )
{
	$('star' + teammemberId + 1).className = "star " + cursor + star1;
	$('star' + teammemberId + 2).className = "star " + cursor + star2;
	$('star' + teammemberId + 3).className = "star " + cursor + star3;
	$('star' + teammemberId + 4).className = "star " + cursor + star4;
	$('star' + teammemberId + 5).className = "star " + cursor + star5;
}

function savePictureRating ( forumId, themeId, value )
{
	new Ajax.Request( myWebRoot + 'myinterfaces/' + myLanguagePath + '/teammember-rating.ajax', { method: 'post', postBody: 'forumid=' + forumId + '&themeid=' + themeId + '&ratingtypeid=2&ratingvalue=' + value, onComplete: savePictureRatingOnComplete } );
}

function savePictureRatingOnComplete ( originalRequest )
{
	writeHTMLToLayer( 'saveRatingResponseDialog', originalRequest.responseText );
	$('saveRatingResponseDialog').show();
	myCenterLayer( 'saveRatingResponseDialog', true, true, 0, 0 );
}

function closeSaveRatingDialog ()
{
	$('saveRatingResponseDialog').hide();
}

function reloadPage ()
{
	window.location.reload();
}
