
16/06/2005, 10:01
|
 | | | Fecha de Ingreso: julio-2003 Ubicación: Caripito Edo Monagas
Mensajes: 169
Antigüedad: 21 años, 7 meses Puntos: 1 | |
JavierB... tengo otro function validar()
function validar() {
var mensaje = "";
if(document.card.nombre.value == "") {
mensaje += "\n - <% = getMsj(Idioma,1) %>";
}
if(document.card.cedula.value == "") {
mensaje += "\n - <% = getMsj(Idioma,2) %>";
}
if(document.card.dpto.value == "") {
mensaje += "\n - <% = getMsj(Idioma,3) %>";
}
if(document.card.fecha.value == "") {
mensaje += "\n - <% = getMsj(Idioma,4) %>";
}
//-------- CAMPO MEMO S1 ---------
if(document.card.S1.value == "") {
mensaje += "\n - <% = getMsj(Idioma,103) %>";
}
//-------- CAMPO MEMO S2 ---------
if(document.card.S2.value == "") {
mensaje += "\n - <% = getMsj(Idioma,105) %>";
}
//-------- CAMPO MEMO S3 ---------
if(document.card.S3.value == "") {
mensaje += "\n - <% = getMsj(Idioma,106) %>";
}
//-------- CAMPO MEMO S4 ---------
if(document.card.S4.value == "") {
mensaje += "\n - <% = getMsj(Idioma,107) %>";
}
if (mensaje != "") {
mensaje ="\n<% = getMsj(Idioma,84) %>:" +
"\n________________________" +
mensaje + "\n" +
"\n<% = getMsj(Idioma,85) %>!";
alert(mensaje);
top.location.href='default.asp#tope'
return false;
}
else
alert("<% = getMsj(Idioma,86) %>")
return true;
} |