function ratePost(id, z){
	var cur = $('#postRating').html();
	$('#postRating').html('<img src="'+IMG+'loading.gif" alt="*">');
	$.post(AJAXPath + 'blog/ratePost.php', {
		id: id, z: z
	}, function(data){
		$('#postRating').html(parseInt(cur) + z);
	});
}

function ratePred(id, z){
	var cur = $('#postRating').html();
	$('#postRating').html('<img src="'+IMG+'loading.gif" alt="*">');
	$.post(AJAXPath + 'blog/ratePred.php', {
		id: id, z: z
	}, function(data){
		$('#postRating').html(data);
		$('#voteButtons').fadeOut();
	});
}