var la_votacion=0;
function enviarVoto(){
	la_votacion=$('la_votacion').value;
	var num_votos=$('el_conteo_de_votos').value;
	var variables='votacion='+$('la_votacion').value+'&idioma='+the_locale;
	variables+='&comentarios='+$('comentarios_votacion').value;
	for(var i=0;i<num_votos;i++){
		if($('voto_'+i).checked){
			variables+='&voto='+$('voto_'+i).value;
			break;
		}
	}
	var enviarVotacion=new Request({
		mehtod: 'post',
		url: 'http://satirarpg.com/recibir_votacion.php',
		encoding: 'utf-8',
		noCache: true,
		onRequest: function(){
			//mostrar el loading
		},
		onSuccess: function(responseText, responseXML){
			$('votacion').innerHTML=responseText;
		}
	});
	enviarVotacion.send(variables);
}
function verComentariosVoto(){
	var variables='votacion=';
	if($('la_votacion')==null){
		variables+=''+la_votacion+'&idioma='+the_locale;
	}else{
		variables+=''+$('la_votacion').value+'&idioma='+the_locale;
	}
	var enviarVotacion=new Request({
		mehtod: 'post',
		url: 'http://satirarpg.com/comentarios_votacion.php',
		encoding: 'utf-8',
		noCache: true,
		onRequest: function(){
			//mostrar el loading
		},
		onSuccess: function(responseText, responseXML){
			$('votacion').innerHTML=responseText;
		}
	});
	enviarVotacion.send(variables);
	return false;
}
