Un saludo
Código HTML:
<form action="gprincipal.asp?mandar=no&tipo=Nada&voz=CATALAN&[COLOR=DarkRed]grupo=" [/COLOR] method="post" name="form1" target="_blank"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td><font size="1" face="Verdana, Arial, Helvetica, sans-serif">La palabra <font color="#006600"><u><b>catalan</b></u></font> no existe en nuestra Base de Datos. Escoja un grupo: </font></td> </tr> <tr> <td><table border="0" cellspacing="0" cellpadding="0"> <tr> <script> function showDiv( id ) { document.all.Gprincipal2.style.visibility = 'hidden'; document.all.Gprincipal2.value = ''; document.all.GSecundario2.style.visibility = 'hidden'; document.all.GSecundario2.value = ''; document.all.VPrincipal2.style.visibility = 'hidden'; document.all.VPrincipal2.value = ''; document.all.Directorio2.style.visibility = 'hidden'; document.all.Directorio2.value = ''; document.all[ id ].style.visibility = 'visible'; document.all[ id ].focus(); } function showDiv2( id,id2,id3,id4,id5,id6 ) { document.all.Gprincipal2.style.visibility = 'hidden'; document.all.Gprincipal2.value = ''; document.all.GSecundario2.style.visibility = 'hidden'; document.all.GSecundario2.value = ''; document.all.VPrincipal2.style.visibility = 'hidden'; document.all.VPrincipal2.value = ''; document.all.Directorio2.style.visibility = 'hidden'; document.all.Directorio2.value = ''; document.all[ id ].style.visibility = 'visible'; document.all[ id].focus(); document.all[ id2 ].style.visibility = 'visible'; document.all[ id2 ].focus(); document.all[ id3 ].style.visibility = 'visible'; document.all[ id3 ].focus(); document.all[ id4 ].style.visibility = 'visible'; document.all[ id4 ].focus(); document.all[ id5 ].style.visibility = 'visible'; document.all[ id5 ].focus(); document.all[ id6 ].style.visibility = 'visible'; document.all[ id6 ].focus(); } function showDiv32( id,id2,id3,id4,id5,id6 ) { document.all.Gprincipal2.style.visibility = 'hidden'; document.all.Gprincipal2.value = ''; document.all.GSecundario2.style.visibility = 'hidden'; document.all.GSecundario2.value = ''; document.all.VPrincipal2.style.visibility = 'hidden'; document.all.VPrincipal2.value = ''; document.all.Directorio2.style.visibility = 'hidden'; document.all.Directorio2.value = ''; document.all[ id ].style.visibility = 'hidden'; document.all[ id].focus(); document.all[ id2 ].style.visibility = 'hidden'; document.all[ id2 ].focus(); document.all[ id3 ].style.visibility = 'hidden'; document.all[ id3 ].focus(); document.all[ id4 ].style.visibility = 'hidden'; document.all[ id4 ].focus(); document.all[ id5 ].style.visibility = 'hidden'; document.all[ id5 ].focus(); document.all[ id6 ].style.visibility = 'hidden'; document.all[ id6 ].focus(); } function habilita(){ document.form1.txt.disabled = false; } function deshabilitaGS2(){ document.form1.Gprincipal2.disabled = true; document.form1.Gprincipal2.value = ""; document.form1.GSecundario2.disabled = true; document.form1.GSecundario2.value = ""; document.form1.VPrincipal2.disabled = true; document.form1.VPrincipal2.value = ""; document.form1.Directorio2.disabled = true; document.form1.Directorio2.value = ""; } </script> <td width="151"> <input type="radio" name="voces" value="GRUPO1" id="GP2" onclick="showDiv32('Gprincipal2','GSecundario2','VPrincipal2','Directorio2')"> <font size="1" face="Verdana, Arial, Helvetica, sans-serif"> <LABEL for=GP2><strong>GRUPO Principal</strong></LABEL> </font></td> <td width="165"><input name="voces" type="radio" id="GS2" onSelect="deshabilitaGS2()" onClick="showDiv2('Gprincipal2' )" value="GRUPO2"> <font size="1" face="Verdana, Arial, Helvetica, sans-serif"> <LABEL for=GS2><strong>GRUPO Secundario</strong></label> </font></td> <td width="122"><input type="radio" name="voces" value="vozPrincipal" onClick="showDiv2( 'Gprincipal2','GSecundario2')" id="VP2"> <font size="1" face="Verdana, Arial, Helvetica, sans-serif"> <LABEL for=VP2><strong>Voz Principal</strong></label></font> </td> <td width="122"><input type="radio" name="voces" value="Directorio" onClick="showDiv2( 'Gprincipal2','GSecundario2','VPrincipal2' )" id="D2"> <font size="1" face="Verdana, Arial, Helvetica, sans-serif"> <LABEL for=D2><strong>Directorio</strong></label> </font></td> <td width="103"><input type="radio" name="voces" value="voz1" onClick="showDiv2( 'Gprincipal2','GSecundario2','VPrincipal2','Directorio2' );" id="Voz12"> <font size="1" face="Verdana, Arial, Helvetica, sans-serif"> <LABEL for=Voz12><strong>Voz1</strong></label> </font></td> <td width="132"> <input type="radio" name="voces" value="voz2" id="Voz22" onclick="showDiv32('Gprincipal2','GSecundario2','VPrincipal2','Directorio2')"> <font size="1" face="Verdana, Arial, Helvetica, sans-serif"> <LABEL for=Voz22><strong>Voz2</strong></label> </font></td> </tr> </table></td> </tr> <tr> <td align="right"><table border="0" cellspacing="0" cellpadding="0"> <tr> <td><select name="Gprincipal" id="Gprincipal2" style="color: #000000; background-color: #EEEEEE; border-top : 1px solid; border-bottom : 1px solid; border-left : 1px solid; border-right : 1px solid; font-family : Verdana,tahoma,Arial; font-size : 10px; visibility:hidden"> <option value="0" selected>Grupo Principal</option> <option value="1">MITOLOGIA</option> <option value="3">ARTES ESCENICAS</option> <option value="13">ARTE</option> <option value="14">VIDEO</option> </select></td> <td><select name="GSecundario" id="GSecundario2" style="color: #000000; background-color: #EEEEEE; border-top : 1px solid; border-bottom : 1px solid; border-left : 1px solid; border-right : 1px solid; font-family : Verdana,tahoma,Arial; font-size : 10px; visibility:hidden"> <option value="0" selected>Grupo Secundario</option> <option value="25">Pruebas</option> </select></td> <td><select name="VPrincipal" id="VPrincipal2" style="color: #000000; background-color: #EEEEEE; border-top : 1px solid; border-bottom : 1px solid; border-left : 1px solid; border-right : 1px solid; font-family : Verdana,tahoma,Arial; font-size : 10px; visibility:hidden"> <option value="0" selected>Voz Principal</option> <option value="30">FIBRA</option> </select></td> <td><select name="Directorio" id="Directorio2" style="color: #000000; background-color: #EEEEEE; border-top : 1px solid; border-bottom : 1px solid; border-left : 1px solid; border-right : 1px solid; font-family : Verdana,tahoma,Arial; font-size : 10px; visibility:hidden"> <option value="0" selected>Directorio</option> <option value="37">NUEVOS MITOS</option> </select></td> <td><input name="voz" type="text" id="voz" style="color: #000000; background-color: #EEEEEE; border-top : 1px solid; border-bottom : 1px solid; border-left : 1px solid; border-right : 1px solid; font-family : Verdana,tahoma,Arial; font-size : 10px;" value="catalan" size="40"></td> </tr> </table></td> </tr> <tr> <td> </td> </tr> </table> <font size="1" face="Verdana, Arial, Helvetica, sans-serif"> <input name="Submit" type="button" style="color: #000000; background-color: #66FF99; border-top : 1px solid; border-bottom : 1px solid; border-left : 1px solid; border-right : 1px solid; font-family : Verdana,tahoma,Arial; font-size : 10px; font-weight: bold;" value="borrar" onclick="showDiv32('Gprincipal2','GSecundario2','VPrincipal2','Directorio2')"> <input name="Submit" type="submit" style="color: #000000; background-color: #66FF99; border-top : 1px solid; border-bottom : 1px solid; border-left : 1px solid; border-right : 1px solid; font-family : Verdana,tahoma,Arial; font-size : 10px; font-weight: bold;" value="establecer voz"> </font> </form>