	function seleccionaPais(pais,nombre){
		document.getElementById('pais').value=pais;
		document.getElementById('nombre_pais').value=nombre;
		document.forms.paisFm.submit();
	}
	function seleccionaTema(pregunta,nombre){
		document.getElementById('pregunta').value=pregunta;
		document.getElementById('enunciado').value=nombre;
		document.forms.temaFm.submit();
	}
	
	function seleccionaTemaSinValidar(pregunta,nombre){
		document.getElementById('pregunta').value=pregunta;
		document.getElementById('enunciado').value=nombre;
		document.forms.sinValidarFm.submit();
	}
	
	function seleccionaTemaSinValidarPorPais(pregunta,enunciado,pais){
		document.getElementById('pregunta').value=pregunta;
		document.getElementById('enunciado').value=enunciado;
		document.getElementById('pais').value=pais;
		document.forms.sinValidarPorPaisFm.submit();
	}
	
	function cambiaPais(pais,nombre){
		if (document.getElementById('pregunta').value!=""){
			document.getElementById('pais_s').value=pais;
			document.getElementById('nombre_pais_s').value=nombre;
			document.forms.seleccionaFm.submit();
		} else {
			document.getElementById('pais_p').value=pais;
			document.getElementById('nombre_pais_p').value=nombre;
			document.forms.paisFm.submit();
		}
	}
	function seleccionaPregunta(pregunta,nombre, coordenada){
		document.getElementById('pregunta').value=pregunta;
		document.getElementById('enunciado').value=nombre;
		document.forms.seleccionaFm.submit();
	}
	function actualiza(){
		document.forms.actualizaFm.submit();
	}
	function actualiza_tablero(pais,pregunta){
		document.getElementById('pregunta_a').value=pregunta;
		document.forms.actualizaFm.submit();
	}
	function actualizaTema(){
		document.getElementById('pais_a').value=document.getElementById('pais').value;
		document.forms.actualizaFm.submit();
	}
	
	function showItem(id){
		
		hideAllDivs();
		var jerarquia=id.split("-");
		
		var div_path=jerarquia[0];
		var final=jerarquia[1];
		var path=jerarquia[0]+"-"+jerarquia[jerarquia.length-1];
		
		showHideElement(path);
		var i=1;
		path_padre=jerarquia[jerarquia.length-1];
		for (i=jerarquia.length-2;i>=1;i=i-1){
			path_padre=jerarquia[i]+"-"+path_padre;
			path_aux=div_path+"-"+path_padre;
			if(document.getElementById(path_aux)!=null){
				showHideElement(path_aux);
			}
		}
	}
	
	function valida(pregunta,pais){
		document.getElementById('pregunta').value=pregunta;
		document.getElementById('pais').value=pais;
		document.forms.validarFm.submit();
	}
	
	function rechaza(pregunta,pais){
		document.getElementById('pregunta').value=pregunta;
		document.getElementById('pais').value=pais;
		document.forms.rechazarFm.submit();
	}
