<script> function envia(pag, donde){ document.formulario.target = donde; document.formulario.action = pag; document.formulario.submit(); } </script>