











	













function irt(){
     	//alert(document.getElementById("traductor").value);
	window.open(document.getElementById("traductores").value);
}
function pintarIrt(){



document.write ('<select title="Traductor" id="traductores" class="traduce" name="traductor">');
document.write('<option value= "http://babelfish.altavista.com/" selected="selected">Traductor</option><option value= "http://dictionary.reference.com/translate/">Ingl&eacute;s</option><option value= "http://babelfish.altavista.com/">Franc&eacute;s</option><option value= "http://babelfish.altavista.com/">Alem&aacute;n</option><option value= "http://www.opentrad.org/">Catal&aacute;</option><option value= "http://sli.uvigo.es/tradutor/">Galego</option><option value= "http://www.opentrad.org/">Euskera</option></select>');
  
	document.write ("<a class='botonir' href='javascript:irt()' title='Ir a...' accesskey='1'>Ir</a>");

}

function ir(uri,locale){
  var idiomaSeleccionado = document.getElementById("idioma").value;
  
  
  document.location.href=uri.replace("/"+locale+"/","/"+idiomaSeleccionado+"/");
  
}

function pintarIr(uri,locale){
	
	
	document.write("<select title='Idioma' class='traduce' id='idioma' name='idioma'>");
	document.write("<option value= 'es' selected='selected'>Idioma</option>");
	document.write("<option value= 'es' >Espa&ntilde;ol</option>");
  	document.write("<option value= 'en' >Ingl&eacute;s</option>");
	document.write("<option value= 'fr' >Franc&eacute;s</option>");
	document.write("</select>");
	document.write ("<a class='botonir' href=\"javascript:ir(\'"+uri+"\',\'"+locale+"\')\" title='Ir a...' accesskey='1'>Ir</a>");	
}

function enviar(indice_)
{
	document.search.indice.value = indice_;
	document.search.submit();
}

function mostrarResultado(locale){
    var izquierda=(screen.width-350)/2;
    var arriba=(screen.height-350)/2;
    var url="http://pre-explotacion.mtas.es/uafse/jsp/mostrarResultados.jsp?locale="+locale;
    window.open(url,"nuevaventana","width=670,height=350,resizable=yes,top="+arriba+"px,left="+izquierda+"px");
    return false;
}

function votar(locale){
    var izquierda=(screen.width-350)/2;
    var arriba=(screen.height-350)/2;
    var opcionSelecionada;
    for (var i = 0; i < document.formulario.opcion.length; i++) {
	if(document.formulario.opcion[i].checked){
		opcionSelecionada = document.formulario.opcion[i].value;
	}
    }
    var url="http://pre-explotacion.mtas.es/uafse/actualizarvotos?opcion="+opcionSelecionada+"&locale="+locale;
    window.open(url,"nuevaventana","width=200,height=120,resizable=yes,top="+arriba+"px,left="+izquierda+"px");
    return false;
}

function pintarBuscar(locale){
    document.write("<a class='menurojo' href='javascript:enviar(0);'>MTAS</a><span class='avanzada'> o </span> <a class='menurojo' href='javascript:enviar(2);'>UAFSE</a>");	
}

function pintarVotar(locale){
    document.write("<a class='ver_todas_noticias' href='http://pre-explotacion.mtas.es/uafse/actualizarvotos?locale="+locale+"' onclick=\"votar(\'"+locale+"\');return false;\" target='nuevaventana' title='Se abre en otra ventana' accesskey='6'>Opinar &gt;&gt;</a>");    
}

function proyec(uri){
  var carpeta= document.getElementById("carpet").value;
  
  var url =  document.location.href.replace("/index.html","/"+carpeta+"/index.html");
  document.location.href=url;
	
  
}

function proyec2(uri){
  var carpeta= document.getElementById("carpet2").value;
  
  var url =  document.location.href.replace("/index.html","/"+carpeta+"/index.html");
  document.location.href=url;
	
  
}

function proyec3(uri){
  var carpeta= document.getElementById("carpet3").value;
  
  var url =  document.location.href.replace("/index.html","/"+carpeta+"/index.html");
  document.location.href=url;
	
  
}


function test(){



//var url2 =  document.location.href.replace("/UAFSE/es/proyectos/trabajadores/index.html","/system/modules/com.UAFSE.portal/jspTemplates/copiar.jsp");    
document.location.href= "/opencms/opencms-errorhandler/system/modules/com.UAFSE.portal/jspTemplates/copiar.jsp";
	

}