Liburuteko Bazkide egiteko bete beharreko formularioa
 Bete itzazu datu hauek eta astebete barruan txartela jasotzeko moduan izango zara liburutegian.
*NAN: *Izen Abizenak: *Jaiotza Data: *Telefonoa: Gaia: * duten kanpoak bete beharrezkoak dira.   function ValidaFormularioAlta(theForm){ //Escribimos las funciones de validacion de los campos obligatorios if (stripInitialWhitespace(theForm.NAN.value)=="") { alert("Escriba un valor para el campo \"NAN\"."); theForm.NAN.focus(); return(false); } if (stripInitialWhitespace(theForm.Izen_Abizenak.value)=="") { alert("Escriba un valor para el campo \"Izen Abizenak\"."); theForm.Izen_Abizenak.focus(); return(false); } if (stripInitialWhitespace(theForm.Jaiotza_Data.value)=="") { alert("Escriba un valor para el campo \"Jaiotza Data\"."); theForm.Jaiotza_Data.focus(); return(false); } if (stripInitialWhitespace(theForm.Telefonoa.value)=="") { alert("Escriba un valor para el campo \"Telefonoa\"."); theForm.Telefonoa.focus(); return(false); } //Escribimos las funciones de validacion de los campos de texto //Escribimos las funciones de validacion de los campos de IP //Escribimos las funciones de validacion de los campos de email //Escribimos las funciones de validacion de los campos numéricos for (k=0;k'9') { alert("El campo \"Telefonoa\" sólo puede contener caracteres numéricos. Elimine los caracteres no numéricos."); theForm.Telefonoa.focus(); return(false); } } //Escribimos las funciones de validacion de los campos numéricos decimales //Escribimos las funciones de validacion de los campos fecha cadena= theForm.Jaiotza_Data.value; if (cadena!=="") { pos1=cadena.indexOf("/",1); pos2=cadena.indexOf("/",pos1+1); if (pos1==-1) { alert("El campo \"Jaiotza Data\" debe contener una fecha lógica siguiendo el formato «dd/mm/aaaa»"); theForm.Jaiotza_Data.focus(); return(false); } if (pos2==-1) { alert("El campo \"Jaiotza Data\" debe contener una fecha lógica siguiendo el formato «dd/mm/aaaa»"); theForm.Jaiotza_Data.focus(); return(false); } dia=cadena.substring(0,pos1) for (k=0;k'9') { alert("El campo \"Jaiotza Data\" debe contener una fecha lógica siguiendo el formato «dd/mm/aaaa»"); theForm.Jaiotza_Data.focus(); return(false); } } if (dia>31 || dia'9') { alert("El campo \"Jaiotza Data\" debe contener una fecha lógica siguiendo el formato «dd/mm/aaaa»"); theForm.Jaiotza_Data.focus(); return(false); } if (mes>12 || mes'9') { alert("El campo \"Jaiotza Data\" debe contener una fecha lógica siguiendo el formato «dd/mm/aaaa»"); theForm.Jaiotza_Data.focus(); return(false); } } if (ano>3000 || ano


Más Noticias
Portada