var dom_popup_login; var dom_popup_ayuda; var dom_popup_dns; function dom_verifica_dns() { var ok=0; event.returnValue=false; ff=window.document.FRegDominios; if (ff.dom_ns_pri.value.length < 3) { error = "Datos Adicionales - NS Primario"; ok=1; } else { if (ff.dom_ns_pri.value.length > 100) { error = "Datos Adicionales : NS Primario"; ok=1; } } if (ff.dom_ns_sec.value.length < 3) { error = "Datos Adicionales : NS Secundario"; ok=1; } else { if (ff.dom_ns_sec.value.length > 100) { error = "Datos Adicionales : NS Secundario"; ok=1; } } if (ff.dom_verif_dns.value == "Sí") { if (ok==1) { alert("Se ha detectado un error en la inserción de datos del fomulario.\nRevise atentamente el campo '"+error+"'\n\n"); } else { dom_popup_dns = window.open("/dom_dns.html?ns1="+ff.dom_ns_pri.value+"\&ns2="+ff.dom_ns_sec.value,"dom_dns","width=420,height=200,resizable=no,scrollbars=yes,status=no"); } } else { alert("Ya ha verificado los servidores de DNS primario y secundario."); } } function dom_validarFAltaClientes(ff) { event.returnValue=false; var ok=0; var error=""; validacion_CC = /[^0-9]/g; validacion_cpostal = /^[0-9]{5}$/ validacion_texto = /[^a-zA-Z-.0-9]/g; if (ff.NombreFacturacion.value.length < 6 ){ error="Datos de Facturación : Nombre de Facturación"; ok=1; } else { if(ff.NombreFacturacion.value.length > 125){ error="Datos de Facturación : Nombre de Facturación"; ok=1; } } if (ff.PersonaContacto.value.length < 6 ){ error="Datos de Facturación : Persona de Contacto"; ok=1; } else { if(ff.PersonaContacto.value.length > 128){ error="Datos de Facturación : Persona de Contacto"; ok=1; } } if (ff.DireccionFacturacion.value.length < 6 ){ error="Datos de Facturación : Dirección de Facturación"; ok=1; } else { if(ff.DireccionFacturacion.value.length > 255){ error="Datos de Facturación : Dirección de Facturación"; ok=1; } } if (ff.CPostal.value.length < 5 ){ error="Datos de Facturación : Código Postal"; ok=1; } else { if(ff.CPostal.value.length > 10){ error="Datos de Facturación : Código Postal"; ok=1; } } if ((ff.Pais.value.toLowerCase() == "españa") && (!(validacion_cpostal.test(ff.CPostal.value)))) { error="Datos de Facturación : Código Postal"; ok=1; } if (ff.Poblacion.value.length < 4 ){ error="Datos de Facturación : Población"; ok=1; } else { if(ff.Poblacion.value.length > 125){ error="Datos de Facturación : Población"; ok=1; } } if (ff.Provincia.value.length < 4 ){ error="Datos de Facturación : Provincia"; ok=1; } else { if(ff.Provincia.value.length > 50){ error="Datos de Facturación : Provincia"; ok=1; } } if (ff.Pais.value.length < 4 ){ error="Datos de Facturación : País"; ok=1; } else { if(ff.Pais.value.length > 50){ error="Datos de Facturación : País"; ok=1; } } if (ff.NIF.value.length < 1 ){ error += "\nDatos de Facturación : NIF / CIF / NIE"; ok=1; } else { if(ff.NIF.value.length > 50){ error += "\nDatos de Facturación : NIF / CIF / NIE"; ok=1; } } if (ff.Telefono.value.length < 9 ){ error += "\nDatos de Facturación : Teléfono"; ok=1; } else { if(ff.Telefono.value.length > 50){ error += "\nDatos de Facturación : Teléfono"; ok=1; } } if (ff.Fax.value.length > 0 ){ if (ff.Fax.value.length < 9 ){ error += "\nDatos de Facturación : Fax"; ok=1; } else { if(ff.Fax.value.length > 50){ error += "\nDatos de Facturación : Fax"; ok=1; } } } if (ff.Movil.value.length > 0 ){ ff.Movil.value = replaceSubstring(ff.Movil.value, " ", ""); ff.Movil.value = replaceSubstring(ff.Movil.value, "-", ""); ff.Movil.value = replaceSubstring(ff.Movil.value, ".", ""); ff.Movil.value = replaceSubstring(ff.Movil.value, "+34", ""); if (ff.Movil.value.length != 9 ){ error += "\nDatos de Facturación : Movil"; ok=1; } if (validacion_CC.test(ff.Movil.value)) { ok=1; error += "\nMovil"; } } if (!(esEmailValido(ff.Email.value))) { error += "\nDatos de Facturación : Correo electrónico"; ok=1; } validacion = /[^a-z-.@0-9]/gi; if (validacion.test(ff.Login.value)) { error += "\nIdentificador de Usuario"; ok=1; } if (validacion.test(ff.Password.value)) { error += "\nContraseña"; ok=1; } if (ff.Login.value.length < 3 ){ error += "\nIdentificador de Usuario"; ok=1; } else { if(ff.Login.value.length > 50){ error += "\nIdentificador de Usuario"; ok=1; } } if (ff.Password.value.length < 3 ){ error += "\nContraseña"; ok=1; } else { if(ff.Password.value.length > 50){ error += "\nContraseña"; ok=1; } } if (ff.NIF.value.length == 9 ){ if ( !(CalculaNif(ff.NIF.value) || CalculaCif(ff.NIF.value) || CalculaNie(ff.NIF.value)) ) { ok=1; error += "\nDatos de Facturación : NIF / CIF / NIE"; } else { ff.NIF.value = ff.NIF.value.toUpperCase(); } } else { ok=1; error += "\nDatos de Facturación : NIF / CIF / NIE"; } if (ff.dom_NombreFacturacion.value.length < 6 ){ error="Empresa"; ok=1; } else { if(ff.dom_NombreFacturacion.value.length > 125){ error="Datos para el Registro de Dominio : Empresa"; ok=1; } } if (ff.dom_PersonaContacto.value.length < 6 ){ error="Datos para el Registro de Dominio : Persona de Contacto"; ok=1; } else { if(ff.dom_PersonaContacto.value.length > 128){ error="Datos para el Registro de Dominio : Persona de Contacto"; ok=1; } } if (ff.dom_DireccionFacturacion.value.length < 6 ){ error="Datos para el Registro de Dominio : Dirección de Facturación"; ok=1; } else { if(ff.dom_DireccionFacturacion.value.length > 255){ error="Datos para el Registro de Dominio : Dirección de Facturación"; ok=1; } } if (ff.dom_CPostal.value.length < 5 ){ error="Datos para el Registro de Dominio : Código Postal"; ok=1; } else { if(ff.dom_CPostal.value.length > 10){ error="Datos para el Registro de Dominio : Código Postal"; ok=1; } } if ((ff.dom_Pais.value.toLowerCase() == "españa") && (!(validacion_cpostal.test(ff.dom_CPostal.value)))) { error="Datos para el Registro de Dominio : Código Postal"; ok=1; } if (ff.dom_Poblacion.value.length < 4 ){ error="Datos para el Registro de Dominio : Población"; ok=1; } else { if(ff.dom_Poblacion.value.length > 125){ error="Datos para el Registro de Dominio : Población"; ok=1; } } if (ff.dom_Provincia.value.length < 4 ){ error="Datos para el Registro de Dominio : Provincia"; ok=1; } else { if(ff.dom_Provincia.value.length > 50){ error="Datos para el Registro de Dominio : Provincia"; ok=1; } } if (ff.dom_Pais.value.length < 4 ){ error="Datos para el Registro de Dominio : País"; ok=1; } else { if(ff.dom_Pais.value.length > 50){ error="Datos para el Registro de Dominio : País"; ok=1; } } if (ff.dom_NIF.value.length < 1 ){ error += "\nDatos para el Registro de Dominio : NIF / CIF / NIE"; ok=1; } else { if(ff.dom_NIF.value.length > 50){ error += "\nDatos para el Registro de Dominio : NIF / CIF / NIE"; ok=1; } } if (ff.dom_Telefono.value.length < 9 ){ error += "\nDatos para el Registro de Dominio : Teléfono"; ok=1; } else { if(ff.dom_Telefono.value.length > 50){ error += "\nDatos para el Registro de Dominio : Teléfono"; ok=1; } } if (ff.dom_Fax.value.length > 0 ){ if (ff.dom_Fax.value.length < 9 ){ error += "\nDatos para el Registro de Dominio : Fax"; ok=1; } else { if(ff.dom_Fax.value.length > 50){ error += "\nDatos para el Registro de Dominio : Fax"; ok=1; } } } if (ff.dom_Movil.value.length > 0 ){ ff.dom_Movil.value = replaceSubstring(ff.Movil.value, " ", ""); ff.dom_Movil.value = replaceSubstring(ff.Movil.value, "-", ""); ff.dom_Movil.value = replaceSubstring(ff.Movil.value, ".", ""); ff.dom_Movil.value = replaceSubstring(ff.Movil.value, "+34", ""); if (ff.dom_Movil.value.length != 9 ){ error += "\nDatos para el Registro de Dominio : Movil"; ok=1; } if (validacion_CC.test(ff.dom_Movil.value)) { ok=1; error += "\nDatos para el Registro de Dominio : Movil"; } } if (!(esEmailValido(ff.dom_Email.value))) { error += "\nDatos para el Registro de Dominio : Correo electrónico"; ok=1; } if (ff.dom_NIF.value.length == 9 ){ if ( !(CalculaNif(ff.dom_NIF.value) || CalculaCif(ff.dom_NIF.value) || CalculaNie(ff.dom_NIF.value)) ) { ok=1; error += "\nDatos para el Registro de Dominio : NIF / CIF / NIE"; } else { ff.dom_NIF.value = ff.dom_NIF.value.toUpperCase(); } } else { ok=1; error += "\nDatos para el Registro de Dominio : NIF / CIF / NIE"; } if ((ff.Id.value == 'NUEVO') && (ff.Verificado.value != '1')) { ok=1; error += "\nVerificación de Identificador de Usuario"; } if (ff.dom_verif_dns.value == "Sí") { error += "\nDatos Adicionales : Servidores de DNS"; ok=1; } if (ff.dom_verif_cat.value == "Sí") { if (!(dom_verifica_url_cat(ff))) { error += "\nDatos Adicionales : URL(s) dominio(s) .CAT"; ok=1; } } if ((ff.dom_verif_ncliente.value == "Sí") && (ff.nc_Login.value.length > 0)) { error += "\nDatos Adicionales : Asociar a Cuenta de Nuevo Cliente"; ok=1; } if (ok==0){ var browsername = navigator.appName; if(browsername == 'Microsoft Internet Explorer') { obj1=parent.document.all['dom_alta']; } else { obj1=parent.document.getElementById('dom_alta'); } obj1.innerHTML='enviando solicitud'; ff.submit(); } else { alert("Se ha detectado un error en la inserción de datos del fomulario.\nRevise atentamente el/los campo(s) siguiente(s):\n\n"+error+"\n\n"); } } function dom_paso_2() { var ok=0; var ff=window.document.SeleccionDominios; var browsername = navigator.appName; if(browsername == 'Microsoft Internet Explorer') { obj1=parent.document.all['dom_alta']; } else { obj1=parent.document.getElementById('dom_alta'); } obj1.innerHTML='enviando solicitud'; ff.submit(); } function dom_paso_22() { var ok=0; var browsername = navigator.appName; if(browsername == 'Microsoft Internet Explorer') { obj1=parent.document.all['dom_alta_2']; } else { obj1=parent.document.getElementById('dom_alta_2'); } obj1.innerHTML='enviando solicitud'; document.location.href="dom_registro_dominios_01.html"; } function dom_validarRegistroDominios() { event.returnValue=false; var ok=0; var m=0; var error_temp=""; var ff=window.document.SeleccionDominios; var max=ff.dom_max.value; for (dom_id = 0; dom_id < max; dom_id++) { eval("if (ff.dom_sel_"+dom_id+".checked) { ok=ok+ff.dom_sel_"+dom_id+".value; }"); } for (dom_id = 0; dom_id < max; dom_id++) { eval("if (ff.dom_sel_"+dom_id+".checked) { if (ff.dom_opc_"+dom_id+".options[ff.dom_opc_"+dom_id+".selectedIndex].text=='') { ok=0; m=1; } }"); } if (ok==0){ if (m==0){ alert("Se ha detectado un error en la validación del formulario de datos :\n\nDebe seleccionar al menos un dominio para proceder con la solicitud de registro.\n\n"); event.returnValue=false; } else { alert("Se ha detectado un error en la validación del formulario de datos :\n\nDebe definir la modalidad de registro para cada uno de los dominios seleccionados.\n\nSi tiene dudas, consulte la [ayuda] que encontrará a la derecha del campo de selección de modalidad.\n\n"); event.returnValue=false; } } else { var browsername = navigator.appName; if(browsername == 'Microsoft Internet Explorer') { obj1=parent.document.all['dom_alta']; } else { obj1=parent.document.getElementById('dom_alta'); } obj1.innerHTML='enviando solicitud'; ff.submit(); } } function dom_copia_contactos() { ff=window.document.FRegDominios; ff.dom_NombreFacturacion.value = ff.NombreFacturacion.value; ff.dom_PersonaContacto.value = ff.PersonaContacto.value; ff.dom_DireccionFacturacion.value = ff.DireccionFacturacion.value; ff.dom_CPostal.value = ff.CPostal.value; ff.dom_Poblacion.value = ff.Poblacion.value; ff.dom_Provincia.value = ff.Provincia.value; ff.dom_Pais.value = ff.Pais.value; ff.dom_NIF.value = ff.NIF.value; ff.dom_Telefono.value = ff.Telefono.value; ff.dom_Fax.value = ff.Fax.value; ff.dom_Movil.value = ff.Movil.value; ff.dom_Email.value = ff.Email.value; } function dom_login3() { var ok=0; ff=window.document.FRegDominios; if (ff.nc_Login.value.length < 3 ){ error = "Identificador de Usuario"; ok=1; } else { if(ff.Login.value.length > 50){ error = "Identificador de Usuario"; ok=1; } } if (ff.nc_Password.value.length < 3 ){ error = "Contraseña"; ok=1; } else { if(ff.nc_Password.value.length > 50){ error = "Contraseña"; ok=1; } } if (ff.dom_verif_ncliente.value == "Sí") { if (ok==1) { alert("Se ha detectado un error en la inserción de datos del fomulario.\nRevise atentamente el campo '"+error+".'\n\n"); } else { dom_popup_login = window.open("/dom_login3.html?Login="+ff.nc_Login.value,"dom_login","width=420,height=200,resizable=no,scrollbars=yes,status=no"); } } else { if (ok==1) { alert("Se ha detectado un error en la inserción de datos del fomulario.\nRevise atentamente el campo '"+error+".'\n\n"); ff.dom_verif_ncliente.value = "Sí"; } } event.returnValue=false; } function dom_login2() { var ok=0; ff=window.document.FRegDominios; if (ff.Login.value.length < 3 ){ error = "Identificador de Usuario"; ok=1; } else { if(ff.Login.value.length > 50){ error = "Identificador de Usuario"; ok=1; } } if (ff.Password.value.length < 3 ){ error = "Contraseña"; ok=1; } else { if(ff.Password.value.length > 50){ error = "Contraseña"; ok=1; } } if (ff.Id.value == "NUEVO") { if (ok==1) { alert("Se ha detectado un error en la inserción de datos del fomulario.\nRevise atentamente el campo '"+error+".'\n\n"); } else { dom_popup_login = window.open("/dom_login2.html?Login="+ff.Login.value,"dom_login","width=420,height=200,resizable=no,scrollbars=yes,status=no"); } } else { alert("Al tratarse de un cliente ya registrado no es necesario que valide su identificador de usuario y contraseña."); } event.returnValue=false; } function dom_ayuda_1() { dom_popup_ayuda = window.open("/dom_ayuda_1.html","dom_ayuda","width=420,height=560,resizable=no,scrollbars=yes,status=no"); } function dom_login() { dom_popup_login = window.open("/dom_login.html","dom_login","width=420,height=560,resizable=no,scrollbars=yes,status=no"); } function dom_marca_tld(dom_id) { var ff=window.document.SeleccionDominios; eval("ff.dom_sel_"+dom_id+".checked=true"); } function dom_transferir(tld,dom_id) { var browsername = navigator.appName; if(browsername == 'Microsoft Internet Explorer') { obj1=parent.document.all['che_'+tld]; } else { obj1=evalparent.document.getElementById('che_'+tld); } obj1.innerHTML=''; var ff=window.document.SeleccionDominios; eval("ff.dom_sel_"+dom_id+".checked=true"); } function dom_marca_todos() { var ff=window.document.SeleccionDominios; var max=ff.dom_max.value; for (dom_id = 0; dom_id < max; dom_id++) { eval("if (ff.dom_sel_"+dom_id+".checked) { ff.dom_sel_"+dom_id+".checked = false; } else { if (!(ff.dom_sel_"+dom_id+".disabled)) { ff.dom_sel_"+dom_id+".checked = true; } }"); } ff.checkall.checked = false; } function dom_consulta_dominios() { var ok=0; var ff=window.document.SeleccionDominios; var max=ff.dom_max.value; for (dom_id = 0; dom_id < max; dom_id++) { eval("if (ff.dom_sel_"+dom_id+".checked) { ok=ok+ff.dom_sel_"+dom_id+".value; }"); } if (ok==0){ alert("Se ha detectado un error en la validación del formulario de datos :\n\nDebe seleccionar al menos un dominio para proceder con la solicitud de registro.\n\n"); event.returnValue=false; } else { var browsername = navigator.appName; if(browsername == 'Microsoft Internet Explorer') { obj1=parent.document.all['dom_alta']; } else { obj1=parent.document.getElementById('dom_alta'); } obj1.innerHTML='enviando solicitud'; event.returnValue=false; ff.submit(); } } function dom_revalora() { var ff=window.document.SeleccionDominios; var max=ff.dom_max.value; var mi_aux = 0; var reg_modalidades = new Array(); var aux_subtotal = 0; reg_modalidades[-1] = 0; reg_modalidades[0] = 0; reg_modalidades[1] = 200; reg_modalidades[2] = 350; reg_modalidades[3] = 100; reg_modalidades[4] = 30; reg_modalidades[5] = 0; for (dom_id = 0; dom_id < max; dom_id++) { if (eval("ff.dom_sel_"+dom_id+".checked")) { ok=eval("mi_aux = eval(ff.dom_pre_"+dom_id+".value*ff.dom_per_"+dom_id+".value)"); ok=eval("ff.dom_pre_tot_"+dom_id+".value = mi_aux"); ok=eval("ff.dom_pre_tot_opc_"+dom_id+".value = eval(reg_modalidades[eval(ff.dom_opc_"+dom_id+".options[ff.dom_opc_"+dom_id+".selectedIndex].value)])"); ok=eval("aux_subtotal=eval(aux_subtotal+parseInt(ff.dom_pre_tot_"+dom_id+".value)+parseInt(ff.dom_pre_tot_opc_"+dom_id+".value))"); } if (!(eval("ff.dom_sel_"+dom_id+".checked"))) { ok=eval("ff.dom_opc_"+dom_id+".options[0].selected=true"); ok=eval("ff.dom_per_"+dom_id+".options[0].selected=true"); ok=eval("ff.dom_pre_tot_"+dom_id+".value = 0"); ok=eval("ff.dom_pre_tot_opc_"+dom_id+".value = 0"); } } ok=eval(ff.subtotal.value=Math.round(aux_subtotal*100)/100); ok=eval(ff.iva.value=Math.round(ff.subtotal.value*0.16*100)/100); ok=eval(ff.total.value=Math.round(ff.subtotal.value*1.16*100)/100); } function validarFormUsuarios() { var ff=window.document.FRegDominios; var ok=0; validacion = /[^a-z-.@0-9]/gi; if (validacion.test(ff.Login.value)) { ok=1; } if (validacion.test(ff.Password.value)) { ok=1; } if (ff.Login.value.length < 3 ){ ok=1; } else { if(ff.Login.value.length > 128){ ok=1; } } if (ff.Password.value.length < 3 ){ ok=1; } else { if(ff.Password.value.length > 128){ ok=1; } } if (ok==0){ var browsername = navigator.appName; if(browsername == 'Microsoft Internet Explorer') { obj1=parent.document.all['boton_alta']; } else { obj1=parent.document.getElementById('boton_alta'); } obj1.innerHTML='enviando solicitud'; ff.submit(); } else { alert("Se ha detectado un error en la validación del formulario de datos :\n\nIntroduzca un Identificador de usuario y contraseña válidos.\n\n"); event.returnValue=false; } } function revalora() { var ff=window.document.FRegDominios; var mi_aux = 0; var reg_modalidades = new Array(); var aux_subtotal = 0; reg_modalidades[0] = 0; reg_modalidades[0] = 0; reg_modalidades[1] = 200; reg_modalidades[2] = 350; reg_modalidades[3] = 100; reg_modalidades[4] = 30; reg_modalidades[5] = 0; if (eval(ff.check_com)) { if (ff.check_com.checked) { ok=eval(mi_aux = eval(ff.pre_com.value*ff.per_com.value)); ok=eval(ff.pre_mod_com.value = eval(reg_modalidades[eval(ff.sel_com.options[ff.sel_com.selectedIndex].value)])); ok=eval(ff.pre_tot_com.value = eval(eval(mi_aux)+eval(ff.pre_mod_com.value))); ok=eval(aux_subtotal=eval(aux_subtotal+parseInt(ff.pre_tot_com.value))); } if (!(ff.check_com.checked)) { ok=eval(ff.sel_com.options[0].selected=true); ok=eval(ff.per_com.options[0].selected=true); ok=eval(ff.pre_mod_com.value = 0); ok=eval(ff.pre_tot_com.value = 0); } } if (eval(ff.check_net)) { if (ff.check_net.checked) { ok=eval(mi_aux = eval(ff.pre_net.value*ff.per_net.value)); ok=eval(ff.pre_mod_net.value = eval(reg_modalidades[eval(ff.sel_net.options[ff.sel_net.selectedIndex].value)])); ok=eval(ff.pre_tot_net.value = eval(eval(mi_aux)+eval(ff.pre_mod_net.value))); ok=eval(aux_subtotal=eval(aux_subtotal+parseInt(ff.pre_tot_net.value))); } if (!(ff.check_net.checked)) { ok=eval(ff.sel_net.options[0].selected=true); ok=eval(ff.per_net.options[0].selected=true); ok=eval(ff.pre_mod_net.value = 0); ok=eval(ff.pre_tot_net.value = 0); } } if (eval(ff.check_org)) { if (ff.check_org.checked) { ok=eval(mi_aux = eval(ff.pre_org.value*ff.per_org.value)); ok=eval(ff.pre_mod_org.value = eval(reg_modalidades[eval(ff.sel_org.options[ff.sel_org.selectedIndex].value)])); ok=eval(ff.pre_tot_org.value = eval(eval(mi_aux)+eval(ff.pre_mod_org.value))); ok=eval(aux_subtotal=eval(aux_subtotal+parseInt(ff.pre_tot_org.value))); } if (!(ff.check_org.checked)) { ok=eval(ff.sel_org.options[0].selected=true); ok=eval(ff.per_org.options[0].selected=true); ok=eval(ff.pre_mod_org.value = 0); ok=eval(ff.pre_tot_org.value = 0); } } if (eval(ff.check_info)) { if (ff.check_info.checked) { ok=eval(mi_aux = eval(ff.pre_info.value*ff.per_info.value)); ok=eval(ff.pre_mod_info.value = eval(reg_modalidades[eval(ff.sel_info.options[ff.sel_info.selectedIndex].value)])); ok=eval(ff.pre_tot_info.value = eval(eval(mi_aux)+eval(ff.pre_mod_info.value))); ok=eval(aux_subtotal=eval(aux_subtotal+parseInt(ff.pre_tot_info.value))); } if (!(ff.check_info.checked)) { ok=eval(ff.sel_info.options[0].selected=true); ok=eval(ff.per_info.options[0].selected=true); ok=eval(ff.pre_mod_info.value = 0); ok=eval(ff.pre_tot_info.value = 0); } } if (eval(ff.check_cc)) { if (ff.check_cc.checked) { ok=eval(mi_aux = eval(ff.pre_cc.value*ff.per_cc.value)); ok=eval(ff.pre_mod_cc.value = eval(reg_modalidades[eval(ff.sel_cc.options[ff.sel_cc.selectedIndex].value)])); ok=eval(ff.pre_tot_cc.value = eval(eval(mi_aux)+eval(ff.pre_mod_cc.value))); ok=eval(aux_subtotal=eval(aux_subtotal+parseInt(ff.pre_tot_cc.value))); } if (!(ff.check_cc.checked)) { ok=eval(ff.sel_cc.options[0].selected=true); ok=eval(ff.per_cc.options[0].selected=true); ok=eval(ff.pre_mod_cc.value = 0); ok=eval(ff.pre_tot_cc.value = 0); } } if (eval(ff.check_biz)) { if (ff.check_biz.checked) { ok=eval(mi_aux = eval(ff.pre_biz.value*ff.per_biz.value)); ok=eval(ff.pre_mod_biz.value = eval(reg_modalidades[eval(ff.sel_biz.options[ff.sel_biz.selectedIndex].value)])); ok=eval(ff.pre_tot_biz.value = eval(eval(mi_aux)+eval(ff.pre_mod_biz.value))); ok=eval(aux_subtotal=eval(aux_subtotal+parseInt(ff.pre_tot_biz.value))); } if (!(ff.check_biz.checked)) { ok=eval(ff.sel_biz.options[0].selected=true); ok=eval(ff.per_biz.options[0].selected=true); ok=eval(ff.pre_mod_biz.value = 0); ok=eval(ff.pre_tot_biz.value = 0); } } if (eval(ff.check_name)) { if (ff.check_name.checked) { ok=eval(mi_aux = eval(ff.pre_name.value*ff.per_name.value)); ok=eval(ff.pre_mod_name.value = eval(reg_modalidades[eval(ff.sel_name.options[ff.sel_name.selectedIndex].value)])); ok=eval(ff.pre_tot_name.value = eval(eval(mi_aux)+eval(ff.pre_mod_name.value))); ok=eval(aux_subtotal=eval(aux_subtotal+parseInt(ff.pre_tot_name.value))); } if (!(ff.check_name.checked)) { ok=eval(ff.sel_name.options[0].selected=true); ok=eval(ff.per_name.options[0].selected=true); ok=eval(ff.pre_mod_name.value = 0); ok=eval(ff.pre_tot_name.value = 0); } } if (eval(ff.check_es)) { if (ff.check_es.checked) { ok=eval(mi_aux = eval(ff.pre_es.value*ff.per_es.value)); ok=eval(ff.pre_mod_es.value = eval(reg_modalidades[eval(ff.sel_es.options[ff.sel_es.selectedIndex].value)])); ok=eval(ff.pre_tot_es.value = eval(eval(mi_aux)+eval(ff.pre_mod_es.value))); ok=eval(aux_subtotal=eval(aux_subtotal+parseInt(ff.pre_tot_es.value))); } if (!(ff.check_es.checked)) { ok=eval(ff.sel_es.options[0].selected=true); ok=eval(ff.per_es.options[0].selected=true); ok=eval(ff.pre_mod_es.value = 0); ok=eval(ff.pre_tot_es.value = 0); } } if (eval(ff.check_com_es)) { if (ff.check_com_es.checked) { ok=eval(mi_aux = eval(ff.pre_com_es.value*ff.per_com_es.value)); ok=eval(ff.pre_mod_com_es.value = eval(reg_modalidades[eval(ff.sel_com_es.options[ff.sel_com_es.selectedIndex].value)])); ok=eval(ff.pre_tot_com_es.value = eval(eval(mi_aux)+eval(ff.pre_mod_com_es.value))); ok=eval(aux_subtotal=eval(aux_subtotal+parseInt(ff.pre_tot_com_es.value))); } if (!(ff.check_com_es.checked)) { ok=eval(ff.sel_com_es.options[0].selected=true); ok=eval(ff.per_com_es.options[0].selected=true); ok=eval(ff.pre_mod_com_es.value = 0); ok=eval(ff.pre_tot_com_es.value = 0); } } if (eval(ff.check_nom_es)) { if (ff.check_nom_es.checked) { ok=eval(mi_aux = eval(ff.pre_nom_es.value*ff.per_nom_es.value)); ok=eval(ff.pre_mod_nom_es.value = eval(reg_modalidades[eval(ff.sel_nom_es.options[ff.sel_nom_es.selectedIndex].value)])); ok=eval(ff.pre_tot_nom_es.value = eval(eval(mi_aux)+eval(ff.pre_mod_nom_es.value))); ok=eval(aux_subtotal=eval(aux_subtotal+parseInt(ff.pre_tot_nom_es.value))); } if (!(ff.check_nom_es.checked)) { ok=eval(ff.sel_nom_es.options[0].selected=true); ok=eval(ff.per_nom_es.options[0].selected=true); ok=eval(ff.pre_mod_nom_es.value = 0); ok=eval(ff.pre_tot_nom_es.value = 0); } } if (eval(ff.check_eu)) { if (ff.check_eu.checked) { ok=eval(mi_aux = eval(ff.pre_eu.value*ff.per_eu.value)); ok=eval(ff.pre_mod_eu.value = eval(reg_modalidades[eval(ff.sel_eu.options[ff.sel_eu.selectedIndex].value)])); ok=eval(ff.pre_tot_eu.value = eval(eval(mi_aux)+eval(ff.pre_mod_eu.value))); ok=eval(aux_subtotal=eval(aux_subtotal+parseInt(ff.pre_tot_eu.value))); } if (!(ff.check_eu.checked)) { ok=eval(ff.sel_eu.options[0].selected=true); ok=eval(ff.per_eu.options[0].selected=true); ok=eval(ff.pre_mod_eu.value = 0); ok=eval(ff.pre_tot_eu.value = 0); } } if (eval(ff.check_cat)) { if (ff.check_cat.checked) { ok=eval(mi_aux = eval(ff.pre_cat.value*ff.per_cat.value)); ok=eval(ff.pre_mod_cat.value = eval(reg_modalidades[eval(ff.sel_cat.options[ff.sel_cat.selectedIndex].value)])); ok=eval(ff.pre_tot_cat.value = eval(eval(mi_aux)+eval(ff.pre_mod_cat.value))); ok=eval(aux_subtotal=eval(aux_subtotal+parseInt(ff.pre_tot_cat.value))); } if (!(ff.check_cat.checked)) { ok=eval(ff.sel_cat.options[0].selected=true); ok=eval(ff.per_cat.options[0].selected=true); ok=eval(ff.pre_mod_cat.value = 0); ok=eval(ff.pre_tot_cat.value = 0); } } ok=eval(ff.subtotal.value=Math.round(aux_subtotal*100)/100); ok=eval(ff.iva.value=Math.round(ff.subtotal.value*0.16*100)/100); ok=eval(ff.total.value=Math.round(ff.subtotal.value*1.16*100)/100); } function rellenarTlds() { var ff=window.document.FDominio; var tld=window.document.tlds; ff.tlds.value=''; ff.tlds.value=ff.tlds.value+'com|'; tld.com.checked = true; ff.tlds.value=ff.tlds.value+'net|'; tld.net.checked = true; ff.tlds.value=ff.tlds.value+'org|'; tld.org.checked = true; ff.tlds.value=ff.tlds.value+'info|'; tld.info.checked = true; ff.tlds.value=ff.tlds.value+'cc|'; tld.cc.checked = true; ff.tlds.value=ff.tlds.value+'biz|'; tld.biz.checked = true; ff.tlds.value=ff.tlds.value+'name|'; tld.name.checked = true; ff.tlds.value=ff.tlds.value+'es|'; tld.es.checked = true; ff.tlds.value=ff.tlds.value+'com_es|'; tld.com_es.checked = true; ff.tlds.value=ff.tlds.value+'nom_es|'; tld.nom_es.checked = true; ff.tlds.value=ff.tlds.value+'eu|'; tld.eu.checked = true; ff.tlds.value=ff.tlds.value+'cat|'; tld.cat.checked = true; } function check_all_tlds() { var ff=window.document.FRegDominios; if (eval(ff.check_com)) { if (ff.check_com.checked) { ff.check_com.checked = false; } else { ff.check_com.checked = true; } } if (eval(ff.check_net)) { if (ff.check_net.checked) { ff.check_net.checked = false; } else { ff.check_net.checked = true; } } if (eval(ff.check_org)) { if (ff.check_org.checked) { ff.check_org.checked = false; } else { ff.check_org.checked = true; } } if (eval(ff.check_info)) { if (ff.check_info.checked) { ff.check_info.checked = false; } else { ff.check_info.checked = true; } } if (eval(ff.check_cc)) { if (ff.check_cc.checked) { ff.check_cc.checked = false; } else { ff.check_cc.checked = true; } } if (eval(ff.check_biz)) { if (ff.check_biz.checked) { ff.check_biz.checked = false; } else { ff.check_biz.checked = true; } } if (eval(ff.check_name)) { if (ff.check_name.checked) { ff.check_name.checked = false; } else { ff.check_name.checked = true; } } if (eval(ff.check_es)) { if (ff.check_es.checked) { ff.check_es.checked = false; } else { ff.check_es.checked = true; } } if (eval(ff.check_com_es)) { if (ff.check_com_es.checked) { ff.check_com_es.checked = false; } else { ff.check_com_es.checked = true; } } if (eval(ff.check_nom_es)) { if (ff.check_nom_es.checked) { ff.check_nom_es.checked = false; } else { ff.check_nom_es.checked = true; } } if (eval(ff.check_eu)) { if (ff.check_eu.checked) { ff.check_eu.checked = false; } else { ff.check_eu.checked = true; } } if (eval(ff.check_cat)) { if (ff.check_cat.checked) { ff.check_cat.checked = false; } else { ff.check_cat.checked = true; } } ff.checkall.checked = false; } function transferir(tld) { var browsername = navigator.appName; if(browsername == 'Microsoft Internet Explorer') { obj1=parent.document.all['che_'+tld]; } else { obj1=parent.document.getElementById('che_'+tld); } obj1.innerHTML=''; var ff=window.document.FRegDominios; eval("ff.check_"+tld+".checked=true;"); // alert("Haga clic sobre 'Enviar Solicitud' para proceder con la transferencia del dominio."); } function marca_tld(tld) { var ff=window.document.FRegDominios; eval("ff.check_"+tld+".checked=true;"); // alert("Haga clic sobre 'Enviar Solicitud' para proceder con el registro del dominio."); } function validarSoyCliente2() { var ok=0; var ff=window.document.FRegDominios; if (eval(ff.check_com)) { ok=eval(ok+ff.check_com.value); } if (eval(ff.check_net)) { ok=eval(ok+ff.check_net.value); } if (eval(ff.check_org)) { ok=eval(ok+ff.check_org.value); } if (eval(ff.check_info)) { ok=eval(ok+ff.check_info.value); } if (eval(ff.check_cc)) { ok=eval(ok+ff.check_cc.value); } if (eval(ff.check_biz)) { ok=eval(ok+ff.check_biz.value); } if (eval(ff.check_name)) { ok=eval(ok+ff.check_name.value); } if (eval(ff.check_es)) { ok=eval(ok+ff.check_es.value); } if (eval(ff.check_com_es)) { ok=eval(ok+ff.check_com_es.value); } if (eval(ff.check_nom_es)) { ok=eval(ok+ff.check_nom_es.value); } if (eval(ff.check_eu)) { ok=eval(ok+ff.check_eu.value); } if (eval(ff.check_cat)) { ok=eval(ok+ff.check_cat.value); } if (ok==0){ alert("Se ha detectado un error en la validación del formulario de datos :\n\nDebe seleccionar al menos un dominio para proceder con la solicitud de registro.\n\n"); event.returnValue=false; } else { var browsername = navigator.appName; if(browsername == 'Microsoft Internet Explorer') { obj1=parent.document.all['boton_alta2']; } else { obj1=parent.document.getElementById('boton_alta2'); } obj1.innerHTML='enviando solicitud'; ff.submit(); } } function validarSoyCliente1() { var ok=0; var ff=window.document.FRegDominios; if (eval(ff.check_com)) { ok=eval(ok+ff.check_com.value); } if (eval(ff.check_net)) { ok=eval(ok+ff.check_net.value); } if (eval(ff.check_org)) { ok=eval(ok+ff.check_org.value); } if (eval(ff.check_info)) { ok=eval(ok+ff.check_info.value); } if (eval(ff.check_cc)) { ok=eval(ok+ff.check_cc.value); } if (eval(ff.check_biz)) { ok=eval(ok+ff.check_biz.value); } if (eval(ff.check_name)) { ok=eval(ok+ff.check_name.value); } if (eval(ff.check_es)) { ok=eval(ok+ff.check_es.value); } if (eval(ff.check_com_es)) { ok=eval(ok+ff.check_com_es.value); } if (eval(ff.check_nom_es)) { ok=eval(ok+ff.check_nom_es.value); } if (eval(ff.check_eu)) { ok=eval(ok+ff.check_eu.value); } if (eval(ff.check_cat)) { ok=eval(ok+ff.check_cat.value); } if (ok==0){ alert("Se ha detectado un error en la validación del formulario de datos :\n\nDebe seleccionar al menos un dominio para proceder con la solicitud de registro.\n\n"); event.returnValue=false; } else { var browsername = navigator.appName; if(browsername == 'Microsoft Internet Explorer') { obj1=parent.document.all['boton_alta1']; } else { obj1=parent.document.getElementById('boton_alta1'); } obj1.innerHTML='enviando solicitud'; ff.submit(); } } function validarRegistroDominios2() { var ok=0; var ff=window.document.FRegDominios; if (eval(ff.check_com)) { ok=eval(ok+ff.check_com.value); } if (eval(ff.check_net)) { ok=eval(ok+ff.check_net.value); } if (eval(ff.check_org)) { ok=eval(ok+ff.check_org.value); } if (eval(ff.check_info)) { ok=eval(ok+ff.check_info.value); } if (eval(ff.check_cc)) { ok=eval(ok+ff.check_cc.value); } if (eval(ff.check_biz)) { ok=eval(ok+ff.check_biz.value); } if (eval(ff.check_name)) { ok=eval(ok+ff.check_name.value); } if (eval(ff.check_es)) { ok=eval(ok+ff.check_es.value); } if (eval(ff.check_com_es)) { ok=eval(ok+ff.check_com_es.value); } if (eval(ff.check_nom_es)) { ok=eval(ok+ff.check_nom_es.value); } if (eval(ff.check_eu)) { ok=eval(ok+ff.check_eu.value); } if (eval(ff.check_cat)) { ok=eval(ok+ff.check_cat.value); } if (ok==0){ alert("Se ha detectado un error en la validación del formulario de datos :\n\nDebe seleccionar al menos un dominio para proceder con la solicitud de registro.\n\n"); event.returnValue=false; } else { var browsername = navigator.appName; if(browsername == 'Microsoft Internet Explorer') { obj1=parent.document.all['boton_alta']; } else { obj1=parent.document.getElementById('boton_alta'); } obj1.innerHTML='enviando solicitud'; ff.submit(); } } function validarRegistroDominios() { var ok=0; var ff=window.document.FRegDominios; if (eval(ff.check_com)) { if (ff.check_com.checked) { ok=eval(ok+ff.check_com.value); } } if (eval(ff.check_net)) { if (ff.check_net.checked) { ok=eval(ok+ff.check_net.value); } } if (eval(ff.check_org)) { if (ff.check_org.checked) { ok=eval(ok+ff.check_org.value); } } if (eval(ff.check_info)) { if (ff.check_info.checked) { ok=eval(ok+ff.check_info.value); } } if (eval(ff.check_cc)) { if (ff.check_cc.checked) { ok=eval(ok+ff.check_cc.value); } } if (eval(ff.check_biz)) { if (ff.check_biz.checked) { ok=eval(ok+ff.check_biz.value); } } if (eval(ff.check_name)) { if (ff.check_name.checked) { ok=eval(ok+ff.check_name.value); } } if (eval(ff.check_es)) { if (ff.check_es.checked) { ok=eval(ok+ff.check_es.value); } } if (eval(ff.check_com_es)) { if (ff.check_com_es.checked) { ok=eval(ok+ff.check_com_es.value); } } if (eval(ff.check_nom_es)) { if (ff.check_nom_es.checked) { ok=eval(ok+ff.check_nom_es.value); } } if (eval(ff.check_eu)) { if (ff.check_eu.checked) { ok=eval(ok+ff.check_eu.value); } } if (eval(ff.check_cat)) { if (ff.check_cat.checked) { ok=eval(ok+ff.check_cat.value); } } if (ok==0){ alert("Se ha detectado un error en la validación del formulario de datos :\n\nDebe seleccionar al menos un dominio para proceder con la solicitud de registro.\n\n"); event.returnValue=false; } else { var browsername = navigator.appName; if(browsername == 'Microsoft Internet Explorer') { obj1=parent.document.all['boton_alta']; } else { obj1=parent.document.getElementById('boton_alta'); } obj1.innerHTML='enviando solicitud'; ff.submit(); } } function validar_bot_f2() { event.returnValue=false; var ok=0; var acc_busca = "áéíóúàèìòùâêîôûÄËÏÖÜÑñ"; var acc_reemp = "aeiouaeiouaeiouAEIOUnn"; var ff=window.document.FDominio; var tld=window.document.tlds; for (var i=0; i 128){ ok=1; } } if (ok==0){ var browsername = navigator.appName; if(browsername == 'Microsoft Internet Explorer') { obj1=parent.document.all['bot_f2']; } else { obj1=parent.document.getElementById('bot_f2'); } obj1.innerHTML='enviando solicitud'; ff.submit(); } else { if (ok==1) { alert("Se ha detectado un error en la validación del formulario de datos :\n\nLos únicos caracteres permitidos para un nombre de dominio son:\n\n - Los pertenecientes al alfabeto inglés: de la a a la z.\n - Los dígitos del 0 al 9 (No es aconsejable un nombre con sólo dígitos).\n - El guión: - (No puede ser ni el primero ni el último caràcter del nombre).\n\nNo se admiten: acentos, diéresis, la ñ, la ç, espacios en blanco, el punto, etc.\n\nNo hay distinción entre minúsculas y mayúsculas.\n\nLas longitudes màximas y mínimas de un nombre de dominio son:\n\n - Para los gTLD .com, .org, .net, hay un máximo de 64 y un mínimo de 2.\n - Para el TLD ISO-3166 .es: como máximo 63 y como mínimo 3.\n - Para los restantes TLD ISO-3166 depende del registro.\n\nEjemplos de nombres de dominio:\n\n - Correctos: midominio123, 123midominio, mi-dominio\n - Incorrectos: -midominio, mi dominio, mi&dominio, másdominios, mi.dominio\n\n"); } else { alert("Se ha detectado un error en la validación del formulario de datos :\n\nDebe seleccionar un tld de dominio como mínimo.\n\n"); } event.returnValue=false; } } function validarNombreDominio() { var ok=0; var acc_busca = "áéíóúàèìòùâêîôûÄËÏÖÜÑñ"; var acc_reemp = "aeiouaeiouaeiouAEIOUnn"; var ff=window.document.FDominio; var tld=window.document.tlds; for (var i=0; i 128){ ok=1; } } if (ok==0){ ff.submit(); } else { if (ok==1) { alert("Se ha detectado un error en la validación del formulario de datos :\n\nLos únicos caracteres permitidos para un nombre de dominio son:\n\n - Los pertenecientes al alfabeto inglés: de la a a la z.\n - Los dígitos del 0 al 9 (No es aconsejable un nombre con sólo dígitos).\n - El guión: - (No puede ser ni el primero ni el último caràcter del nombre).\n\nNo se admiten: acentos, diéresis, la ñ, la ç, espacios en blanco, el punto, etc.\n\nNo hay distinción entre minúsculas y mayúsculas.\n\nLas longitudes màximas y mínimas de un nombre de dominio son:\n\n - Para los gTLD .com, .org, .net, hay un máximo de 64 y un mínimo de 2.\n - Para el TLD ISO-3166 .es: como máximo 63 y como mínimo 3.\n - Para los restantes TLD ISO-3166 depende del registro.\n\nEjemplos de nombres de dominio:\n\n - Correctos: midominio123, 123midominio, mi-dominio\n - Incorrectos: -midominio, mi dominio, mi&dominio, másdominios, mi.dominio\n\n"); } else { alert("Se ha detectado un error en la validación del formulario de datos :\n\nDebe seleccionar un tld de dominio como mínimo.\n\n"); } event.returnValue=false; } }