function buscar(){ document.search.q.value=document.search.q.value+document.getElementById('busqueda').value document.search.q.submit(); } function ira(){ var pagina=document.getElementById('selector').value; location='/relatos/2011-1011011--la-teresina-el-moro-y-la-albarda-castellan/'+pagina; }