function ratings(gotUserId, userInfoId)
{
	jQuery(".voteoptions, #vote-submit").click(function()
	{
		if (gotUserId == userInfoId) {
			alert($translation.get('noVoteYourself'));
			return false;
		}

		if (gotUserId == 0)
		{
			location.hash = "top-navigation";
			jQuery("#login-username").focus();
			jQuery("#login-username").effect("highlight", {color: "yellow"}, 1000);
			jQuery("#login-password").effect("highlight", {color: "yellow"}, 1000);
			alert($translation.get('voteRegistered'));
			return false;
		}
	});
	
	jQuery('#vote-submit').click(function()	{
		if (gotUserId == userInfoId || gotUserId == 0)
			return false;

		var voted = false;

		jQuery('input[name^=ratings]').each(function() {
			if (jQuery(this).val() != '')
				voted = true;
		})
		
		if (!voted) alert($translation.get('please check a radio button'));

		return voted;
	})
}