function MM_swapImgRestore() { //v3.0 var i,x,a=document.MM_sr; for(i=0;a&&i0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i= len); } //- - - - - - - - - - - - - - - - - //function to validate an email address //- - - - - - - - - - - - - - - - - function ValidEmail(item) { if (!ValidLength(item, 5)) return false; if (item.indexOf ('@', 0) == -1) return false; return true; } //- - - - - - - - - - - - - - - - - // display an error alert //- - - - - - - - - - - - - - - - - function error(elem, text) { // abort if we already found an error if (errfound) return; window.alert(text); elem.focus(); errfound = true; } //- - - - - - - - - - - - - - - - - // validate the search string //- - - - - - - - - - - - - - - - - function Validate_s() { errfound = false; if (!ValidLength(document.BuscarForm.s.value,1)) error(document.BuscarForm.s,"Has olvidado a escribir un texto para buscar..."); return !errfound; /* true if there are no errors */ } //- - - - - - - - - - - - - - - - - // validate the Login strings //- - - - - - - - - - - - - - - - - function Validate_Login() { errfound = false; if (!ValidLength(document.loginform.com_user_email.value,1)) error(document.loginform.com_user_email, "El Usuario es tu dirección de Correo Electrónico y NO se puede dejar en blanco"); if (!ValidEmail(document.loginform.com_user_email.value)) error(document.loginform.com_user_email, "El Usuario que has puesto NO tiene formato de una dirección de Correo Electrónico.\n\nEl Usuario es tu EMAIL. Si no te acuerdas de tu contraseña,\npon tu email en el campo de usuario y deja el campo de contraseña vacía.\n\nEl sistema te enviará un email recordandote de ella inmediatamente"); if (!ValidLength(document.loginform.com_user_pwd.value,1)) if (!errfound) window.alert("Has dejado el campo de contraseña en blanco.\n\nEl sistema comprobará si tu Correo Electrónico ya existe en el sistema y enviarte un email."); return !errfound; /* true if there are no errors */ } function Validate_Login_Pago1() { errfound = false; if (!ValidLength(document.loginform_Pago1.com_user_email.value,1)) error(document.loginform_Pago1.com_user_email, "El Usuario es tu dirección de Correo Electrónico y NO se puede dejar en blanco"); if (!ValidEmail(document.loginform_Pago1.com_user_email.value)) error(document.loginform_Pago1.com_user_email, "El Usuario que has puesto NO tiene formato de una dirección de Correo Electrónico.\n\nEl Usuario es tu EMAIL. Si no te acuerdas de tu contraseña,\npon tu email en el campo de usuario y deja el campo de contraseña vacía.\n\nEl sistema te enviará un email recordandote de ella inmediatamente"); if (!ValidLength(document.loginform_Pago1.com_user_pwd.value,1)) if (!errfound) window.alert("Has dejado el campo de contraseña en blanco.\n\nEl sistema comprobará si tu Correo Electrónico ya existe en el sistema y enviarte un email."); return !errfound; /* true if there are no errors */ } //- - - - - - - - - - - - - - - - - // validate the Remind Me strings //- - - - - - - - - - - - - - - - - function Validate_Remindme() { errfound = false; if (!ValidLength(document.remindform.EMAIL.value,1)) error(document.remindform.EMAIL, "Type in your E-Mail address"); if (!ValidEmail(document.remindform.EMAIL.value)) error(document.remindform.EMAIL, "E-Mail address does not seem to be correct"); return !errfound; /* true if there are no errors */ } //- - - - - - - - - - - - - - - - - // validate the Register strings //- - - - - - - - - - - - - - - - - function Validate_Register() { errfound = false; if (!ValidLength(document.regform.NAME.value,1)) error(document.regform.NAME,"Type in your name"); if (!ValidLength(document.regform.EMAIL.value,1)) error(document.regform.EMAIL, "Type in your E-Mail address"); if (!ValidEmail(document.regform.EMAIL.value)) error(document.regform.EMAIL, "E-Mail address does not seem to be correct"); // if (!ValidLength(document.regform.PWD.value,1)) // error(document.regform.PWD,"Type in your password"); return !errfound; /* true if there are no errors */ } //- - - - - - - - - - - - - - - - - // cerrar la sesión //- - - - - - - - - - - - - - - - - function cerrar_sesion() { var aux; aux = confirm(" ¿Estas seguro que quieres cerrar tu sesión?\n\nA cerrar tu sesión se vaciará tu actual carro de compra.") if (aux == true) {location.href = '/default.asp' } }