Ver Mensaje Individual
  #4 (permalink)  
Antiguo 27/07/2008, 11:03
Joseph
 
Fecha de Ingreso: febrero-2003
Mensajes: 233
Antigüedad: 22 años
Puntos: 4
Respuesta: Como hacer un salto de línea??

en mi caso donde lo coloco?

<SCRIPT language="JavaScript">

function CheckForm () {


var errorMsg = "";

if (document.registro.Nombres.value == ""){
errorMsg += "Nombre(s)";
}

if (document.registro.Apellidos.value == ""){
errorMsg += "Apellido(s)";
}

if (document.registro.Dia.value == ""){
errorMsg += "Día de su Nacimiento";
}

if (document.registro.Mes.value == ""){
errorMsg += "Mes de su Nacimiento";
}

if (document.registro.Ano.value == ""){
errorMsg += "Año de su nacimiento";
}

if ((document.registro.Email.value == "") || (document.registro.Email.value.length > 0 && (document.registro.Email.value.indexOf("@",0) == - 1 || document.registro.email.value.indexOf(".",0) == - 1))) {
errorMsg += "Dirección válida de correo";
}

if (document.registro.Pais.value == "") {
errorMsg += "País de residencia";
}

if (document.registro.Alias.value == ""){
errorMsg += "Ingrese un Alias";
}

if (document.registro.Clave.value == ""){
errorMsg += "Ingrese una Clave";
}

if (document.registro.Clave2.value == ""){
errorMsg += "Reescriba su clave";
}

if (errorMsg != ""){
msg = "Los siguientes campos son necesarios para completar su registro:";
msg += " ";

errorMsg += alert(msg + errorMsg);
return false;
}

return true;
}
</script>