Skip to content

Instantly share code, notes, and snippets.

@caged
Created February 11, 2009 02:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save caged/61766 to your computer and use it in GitHub Desktop.
Save caged/61766 to your computer and use it in GitHub Desktop.
function validate(){
if(document.frm_registracion.txtApellido.value!="")
if(document.frm_registracion.txtNombre.value!="")
if(document.frm_registracion.txtDocumento.value!="")
if(document.frm_registracion.txtDomicilio.value!="")
if(document.frm_registracion.cmbPais.value!=0)
if(document.frm_registracion.cmbProvincia.value!=0)
if(document.frm_registracion.cmbLocalidad.value!=0)
if(document.frm_registracion.txtCodPostal.value!="")
if(document.frm_registracion.txtTelefono.value!="")
if(document.frm_registracion.txtEMail.value!="")
if(document.frm_registracion.txtPassword.value!="")
if(document.frm_registracion.txtPassword.value==document.frm_registracion.txtConfirmacion.value){
document.frm_registracion.action="registrate.asp?Action=Graba";
document.frm_registracion.submit();
};
else
alert("El password no coincide con la confirmacion");
else
alert("Debe ingresar un password");
else
alert("Debe ingresar un E-Mail");
else
alert("Debe ingresar un Telefono");
else
alert("Debe ingresar un Codigo Postal");
else
alert("Debe ingresar un Localidad ");
else
alert("Debe ingresar un Provincia");
else
alert("Debe ingresar un Pais");
else
alert("Debe ingresar un Domicilio");
else
alert("Debe ingresar un Documento");
else
alert("Debe ingresar un Nombre");
else
alert("Debe ingresar un Apellido");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment