

function rateVote (type, ID, score, showVotes, showScore, cssClass)
	{
	$.post
		(
		'ajax.php?do=rate-vote',
		{'type': type, 'id': ID, 'score': score},
		function (xml)
			{
			$('#rate-stars-'+type+'-'+ID).html($(xml).find('stars').text());
			showStatus({'head': $(xml).find('resultHead').text(), 'body': $(xml).find('resultBody').text()});
			},
		'xml'
		);

	/*
	loadURL(baseURL+'/ajaxdata.php?type=rate&rtype='+type+'&id='+ID+'&score='+score);
	if (document.getElementById('rate-stars-'+type+'-'+ID))
		{
		var starURL = 'ajaxdata.php?type=rating&rtype='+type+'&id='+ID+'&showvotes='+showVotes+'&showscore='+showScore+'&class='+cssClass;
		$('#rate-stars-'+type+'-'+ID).load(starURL);
		//loadURLIntoID('ajaxdata.php?type=rating&rtype='+type+'&id='+ID+'&showvotes='+showVotes+'&showscore='+showScore+'&class='+cssClass, 'rate-stars-'+type+'-'+ID);
		}
	*/


	/*
	var votes = document.getElementById('rate-votes-'+type+'-'+ID);
	var score = document.getElementById('rate-score-'+type+'-'+ID);
	if (votes || score)
		{
		var request = getXMLHttpRequestObject();
		request.open("GET", baseURL+"/ajaxdata.php?type=rating_score&type="+type+"&id="+ID, true);
		request.onreadystatechange = function ()
			{
			if (request.readyState == 4)
				{
				var stats = request.responseText.split("|");
				if (votes)
					{
					votes.innerHTML = stats[0];
					}
				if (score)
					{
					score.innerHTML = stats[1];
					}
				}
			}
		}
	*/
	}

