function tx_ratings_submit(id, rating, ajaxData, check) {
	$('tx-ratings-display-' + id).style.visibility = 'hidden';
	$('tx-ratings-wait-' + id).style.visibility = 'visible';
	url = 'index.php?eID=tx_ratings_ajax&ref=' + id + '&rating=' + rating + '&data=' + ajaxData + '&check=' + check;
	new Request.HTML({url:url,
		method:'post',
		//onSuccess: function(html) {
		onSuccess: function(responseTree, responseElements, responseHTML, responseJavaScript) { 
			$('tx-ratings-' + id).empty();
			//$('tx-ratings-' + id).adopt(responseHTML);
			$('tx-ratings-' + id).set('html',responseHTML);
			//alert(responseJavaScript);
			$exec(responseJavaScript);
		},
		update: $('tx-ratings-' + id),
		onCancel:function() {
		},
		onFailure: function() {
		},
		onRequest:function() {
			
		}

	}).send();
}

