function rate(is_question, id, direction)
{
	var magicPotato;
	var supportsAjax = false;
	
	var url = 'http://www.twocansandstring.com/rate/' + (is_question ? 'question' : 'answer') + '/' + id + '/' + direction + '/';
	
	if (window.ActiveXObject) // Good ol' Internet Explorer
	{
		magicPotato = new ActiveXObject("Microsoft.XMLHTTP");
		supportsAjax = true;
	}
	else if (window.XMLHttpRequest) // Everyone else
	{
		magicPotato = new XMLHttpRequest();
		supportsAjax = true;
	}
	
	if (supportsAjax)
	{
		magicPotato.open("GET", url, true);
   
		magicPotato.onreadystatechange = function()
		{
		}
		
		magicPotato.send(null);
	}
	
	document.getElementById('rater_' + id).innerHTML = 'done';
}

function done(result) { }