<form id="form1" name="form1" method="post" action="" onsubmit = "this.action = (tipo.selectedIndex==0) ? 'bando.php' : 'nota.php'">