	function returnData(http_request) {
		if (http_request.readyState == 4) {
			if (http_request.status == 200) {
			} else {
				alert('There was a problem with the request.');
			}
		}
		if (http_request.readyState <= 1)
		{
			showLoading();
		}
	}
	
	function showLoading()
	{
// 		document.getElementById('se-newgenre').innerHTML='<option>Loading...</option>';
	}
	
	function postRating(url, rating) {
		rating++;
		http_request = makeRequest(url);
		http_request.onreadystatechange = function() { updateRating(http_request); };
		http_request.open('POST', url, true);
		http_request.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
		http_request.send('rating=' + rating);
	}
	
	function updateRating (http_request) {
		if (http_request.readyState == 4) {
			if (http_request.status == 200) {
				var xmldoc = http_request.responseXML;
				var max_rating = xmldoc.getElementsByTagName('max').item(0).firstChild.data;
				var img_path = xmldoc.getElementsByTagName('img_path').item(0).firstChild.data;
				var rating = xmldoc.getElementsByTagName('rating').item(0).firstChild.data;
				var votes = xmldoc.getElementsByTagName('votes').item(0).firstChild.data;
				for (i = 0; i < max_rating; i++) {
					if (rating >= i+0.75) {
						img = 'on';
					} else if (rating >= i+0.25) {
						img = 'half';
					} else {
						img = 'off';
					}
					document.getElementById('ratingimg-' + i).src=img_path + 'rating-' + img + '.gif';
					document.getElementById('ratingimg-' + i).alt=100 / max_rating * rating + '% (' + votes + ')';
					document.getElementById('ratingimg-' + i).title=100 / max_rating * rating + '% (' + votes + ')';
				}
			} else {
				alert('There was a problem with the request.');
			}
		}
		if (http_request.readyState <= 1)
		{
// 			alert('loading');
		}
	}
