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/2010-04/ascension-al-puig-peric-2810-m-y-petit-peric-2690/'+pagina; }