//ajax.js
/*
Used for capture and send votes to the RateIt plugin.
must receive the entry id and the vote and will show the 'Voting' text while the vote is being sended.
*/
function RateIt (entry,value) {
	var url = '/mt/mt-RateIt.cgi';
	var pars = 'entry_id='+entry+'&value='+value;
	var target = 'RateIt-'+entry;
	var myAjax = new Ajax.Updater(target, url, {method: 'get', parameters: pars});
	d = document.getElementById(target);
	d.innerHTML = "<i>Voting...</i>";
}
function Wtf (entry,value) {
	var url = '/mt/mt-Wtf.cgi';
	var pars = 'entry_id='+entry+'&value='+value;
	var target = 'Wtf-'+entry;
	var myAjax = new Ajax.Updater(target, url, {method: 'get', parameters: pars});
	d = document.getElementById(target);
	d.innerHTML = "<i>Wtf-ing...</i>";
}

