function rateVideo(videoId, mark, userId) {
	new Ajax.Request(PUBLIC_URL + 'ajax/rate-video/', {
		method: 'post',
		postBody: $H({ videoId: videoId, mark: mark, userId: userId }).toQueryString(),
		onSuccess: function(transport) {
			eval(transport.responseText);
		}
	});	 
}

function rateAudio(audioId, mark, userId) {
	new Ajax.Request(PUBLIC_URL + 'ajax/rate-audio/', {
		method: 'post',
		postBody: $H({ audioId: audioId, mark: mark, userId: userId }).toQueryString(),
		onSuccess: function(transport) {
			eval(transport.responseText);
		}
	});	 
}