Ver Mensaje Individual
  #10 (permalink)  
Antiguo 20/03/2004, 13:59
Zertiko
 
Fecha de Ingreso: noviembre-2002
Mensajes: 571
Antigüedad: 21 años, 6 meses
Puntos: 2
Hola tunai, JavierB y PatomaS gracias por vuestra ayuda sin ella no hubiese llegado a la solución del problema.

El problema estaba en que el segundo if debia ir fuera del for, exactamete asi:

PUESTO_ASISTENCIAL = 0
for(m=0;m<2;m++){
if(theForm.PUESTO_ASISTENCIAL[m].checked == true){
PUESTO_ASISTENCIAL++
}
}
if(PUESTO_ASISTENCIAL==0){
alert('Por favor, seleccione su Puesto Asistencial.')
theForm.PUESTO_ASISTENCIAL[0].focus();
return (false);
}


Así valida allas elegido la primera o la segunda opción del radio.

Saludos.