function AjaxRequest(url, onSuccess) {
	var xmlhttp;
	if (window.XMLHttpRequest) { // code for all new browsers
		xmlhttp = new XMLHttpRequest();
	} else if (window.ActiveXObject) { // code for IE5 and IE6
		xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
	}

	if (xmlhttp != null) {
		xmlhttp.onreadystatechange = function() {
			if (xmlhttp.readyState == 4) { // 4 = "loaded"
				if (xmlhttp.status == 200) { // 200 = OK
					onSuccess(xmlhttp);
				}
			}
		};

		xmlhttp.open("GET", url, true);
		xmlhttp.send(null);
	}
}

function submitRating(contentId,id){
	document.getElementById('vote'+contentId).value=id;
	document.getElementById('votingform'+contentId).submit();
}
