Ver Mensaje Individual
  #2 (permalink)  
Antiguo 08/07/2003, 17:17
Avatar de Kaopectate
Kaopectate
Colaborador
 
Fecha de Ingreso: diciembre-2001
Ubicación: Curaçao (Antillas Holandesas)
Mensajes: 3.179
Antigüedad: 23 años, 1 mes
Puntos: 38
Prueba asi:

Código PHP:
<SCRIPT LANGUAGE="JavaScript">
function 
FValidateControl3(control,nombre) {
  if (
control.value=="") {
    
alert(nombre+" es un campo requerido y debe ingresarse.")
    
control.focus()
    return 
false }
  return 
true }

function 
FSubmitValidation3(form) {
 var 
nTexts parseInt(form.selNumeroDeCombos.value10);
if (!
FValidateControl3(form.id_cliente,"Rut del Cliente")) return false
if (!FValidateControl3(form.ciudad,"Lugar de Despacho ")) return false
if (!FValidateControl3(form.producto,"Descripción del Producto")) return false
if (!FValidateControl3(form.contenido,"Contenido")) return false
if (!FValidateControl3(form.asistente,"Asistente")) return false
if (!FValidateControl3(form.nombre_cliente,"Nombre del Cliente")) return false
if (!FValidateControl3(form.moneda,"Moneda")) return false
if (!FValidateControl3(form.mercado,"Mercado")) return false
if (!FValidateControl3(form.destino,"Destino")) return false
for (var 0nTextsi++){
 
oCntrl document.getElementByName("Texto" String(i));
 if (!
FValidateControl3(oCntrl,"Texto" String(i))) return false
}
return 
true }
</SCRIPT> 
Estoy asumiendo que los 4 elementos restantes se llaman:
- selNumeroDeCombos: Combo con 4 elementos cuyos values dicen el número de texts requeridos.
- Texto1
- Texto2
- Texto3
- Texto4

Prueba y me dices.