ayuda mi javascript no se ejecuta ocultando los inputs en sus casos determinados quien me hecha una mano por favor???
<form action="actualizar.php" method="get" name="formulario">
<table width="689" height="191" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#83ACDA">
<tr>
<td height="21" colspan="12" bgcolor="#FFFFFF"> </td>
</tr>
<tr>
<td height="21" colspan="12" bgcolor="#B8D4F6"><div align="center"><strong>Reporte General de Asistencia </strong></div></td>
</tr>
<tr>
<td height="21" colspan="12" bgcolor="#FFFFFF"><div align="center"><strong>Desde:</strong><?php echo $desde;?> <strong>Hasta:</strong><?php echo $hasta;?><strong> Mes:</strong><?php echo $mes; ?></div></td>
</tr>
<tr>
<td height="21" colspan="12" bgcolor="#FFFFFF"><div align="center"><strong>Nombres:</strong> <?php echo $fila1["nombres"];?> <strong>Apellidos:</strong><?php echo $fila1["apellidos"];?> <strong>Cédula:</strong>V-<?php echo $fila1["cedula"];?></div></td>
</tr>
<tr>
<td width="73" bgcolor="#B8D4F6"><div align="center">Fechas</div></td>
<td width="73" bgcolor="#B8D4F6"><div align="center">Día</div></td>
<td width="73" bgcolor="#B8D4F6"><div align="center">Entrada </div></td>
<td width="73" bgcolor="#B8D4F6"><div align="center">Salida </div></td>
<td width="73" bgcolor="#B8D4F6"><div align="center">Retardo</div></td>
<td width="73" bgcolor="#B8D4F6"><div align="center">Salida T. </div></td>
<td width="50" bgcolor="#B8D4F6"><div align="center">Injus.</div></td>
<td width="50" bgcolor="#B8D4F6"><div align="center">Jus.</div></td>
<td width="228" bgcolor="#B8D4F6"><div align="center">Observaciones</div></td>
</tr>
<?php
$i=0;
while($fila=mysql_fetch_array($resultadoR)){
?>
<tr>
<td><div align="center"><?php echo $fila["fecha"]; ?></div></td>
<td><div align="center"><?php echo $diad ?></div></td>
<td><div align="center"><?php echo $fila["horaE"]; ?></div></td>
<td><div align="center"><?php echo $fila["horaS"]; ?></div></td>
<td><div align="center"><?php echo $fila["retardo"]; ?></div></td>
<td><div align="center"><?php echo $fila["salidaT"]; ?></div></td>
<?php
$inasistencia= $fila["inasistencia"];
$i++;
?>
<script languaje="javascript">
function enable()
{
document.formulario.observaciones<?php echo $i; ?>.disabled = false;
}
function disable()
{
document.formulario.observaciones<?php echo $i ?>.disabled = true;
}
</script>
<?php
switch ($inasistencia){
case 0:
echo' <td><div align="center"><input name="radiobutton'.$i.'" type="radio" disabled="disabled" /></div></td> ';
echo' <td><div align="center"><input name="radiobutton'.$i.'" type="radio" disabled="disabled" /></div></td>';
// echo' <td><div align="center"><input name="observaciones'.$i.'" type="text" disabled="disabled" /></div></td>';
break;
case 1:
echo '<td><div align="center"><input name="radiobutton'.$i.'" type="radio" value="1" checked onclick="enable();" </div></td> '.$i.'';
echo '<td><div align="center"><input name="radiobutton'.$i.'" type="radio" value="2" onclick="disable();"</div></td>';
echo' <td><div align="center"><input name="observaciones'.$i.'" type="text" /></div></td>';
break;
case 2:
echo '<td><div align="center"><input name="radiobutton'.$i.'" type="radio" value="1" onclick="enable()" </div></td>';
echo '<td><div align="center"><input name="radiobutton'.$i.'" type="radio" value="2" checked checked onclick="disable()" </div></td>';
echo' <td><div align="center"><input name="radiobutton'.$i.'" type="text" /></div></td>';
break;
}
?>
</tr>
<?php } ?>
<tr>
<td height="19" bgcolor="#B8D4F6"><img src="images/imagtabla.gif" width="73" height="1" /></td>
<td height="19" bgcolor="#B8D4F6"><img src="images/imagtabla.gif" width="73" height="1" /></td>
<td height="19" bgcolor="#B8D4F6"><img src="images/imagtabla.gif" width="65" height="1" /></td>
<td height="19" bgcolor="#B8D4F6"><img src="images/imagtabla.gif" width="65" height="1" /></td>
<td height="19" bgcolor="#B8D4F6"><img src="images/imagtabla.gif" width="65" height="1" /></td>
<td height="19" bgcolor="#B8D4F6"><img src="images/imagtabla.gif" width="65" height="1" /></td>
<td height="19" bgcolor="#B8D4F6"><img src="images/imagtabla.gif" width="50" height="1" /></td>
<td bgcolor="#B8D4F6"><img src="images/imagtabla.gif" width="50" height="1" /></td>
<td bgcolor="#B8D4F6"><img src="images/imagtabla.gif" width="165" height="1" /></td>
</tr>
<tr>
<td height="4" colspan="12" bgcolor="#FFFFFF"><div align="center">Resumen</div></td>
</tr>
<tr>
<td height="21" colspan="12" bgcolor="#B8D4F6">Días Laborales: <?php echo $menjasefilas; ?> Faltas Total: <?php echo "$menjasefilas6"; ?> Retardo Total: <?php echo makeTimeFromSeconds($sumaR[Totalretardo]); ?> Salida Total.: <?php echo makeTimeFromSeconds($sumaS[TotalsalidaT]); ?></td>
</tr>
</table>
<div align="center">
<input name="Actualizar" type="submit" id="Actualizar" value="Actualizar" />
</div>
</form>