function votar(tipo,id)
{
	//jAlert(tipo + " |  " + id);
	data = "tipo="+tipo + "&id="+ id;
	$.ajax({
		type: "POST",
		url: "/votar.php",
		data: data,
		success: function(msg){
			if(msg == '1')
				//jAlert("Gracias por votar");
				window.location="/site/graciasvotacion.html";
			else
				jAlert("Ya votaste por la categor&iacute;a " + tipo);
		}
	});
}
