function mostrar_tipo_empresa(op){ text_NIF = eval("document.form_alta.NIF"); text_CIF = eval("document.form_alta.CIF"); text_nombre_empresa = eval("document.form_alta.nombre_empresa"); if(op){ if(op == 1){ /* text_NIF.disabled = false; text_CIF.disabled = true; text_nombre_empresa.disabled = true; */ if(document.getElementById('tipo_Privado').style.display == "none") $("#tipo_Privado").slideDown("slow",''); if(document.getElementById('tipo_Empresa').style.display == "block") $("#tipo_Empresa").slideUp("slow",''); text_NIF.focus(); }else{ /* text_NIF.disabled = true; text_CIF.disabled = false; text_nombre_empresa.disabled = false; */ if(document.getElementById('tipo_Privado').style.display == "block") $("#tipo_Privado").slideUp("slow",''); if(document.getElementById('tipo_Empresa').style.display == "none") $("#tipo_Empresa").slideDown("slow",''); text_CIF.focus(); } }else{ /* text_NIF.disabled = true; text_CIF.disabled = true; text_nombre_empresa.disabled = true; */ if(document.getElementById('tipo_Privado').style.display == "block") $("#tipo_Privado").slideUp("slow",''); if(document.getElementById('tipo_Empresa').style.display == "block") $("#tipo_Empresa").slideUp("slow",''); } } function enviarAltaWebmaster(url2show){ if(chequear_datosWebmaster(1)){ var formulario_central = eval("document.form_alta"); var campo_username = eval("formulario_central.username"); var campo_password = eval("formulario_central.password"); var campo_password2 = eval("formulario_central.password2"); var campo_tipo_organizacion = eval("formulario_central.tipo_organizacion"); var campo_NIF = eval("formulario_central.NIF"); var campo_CIF = eval("formulario_central.CIF"); var campo_nombre_empresa = eval("formulario_central.nombre_empresa"); var campo_direccion_empresa = eval("formulario_central.direccion_empresa"); var campo_nombre_afiliado = eval("formulario_central.nombre_afiliado"); var campo_id_pais_afiliado = eval("formulario_central.id_pais"); var campo_id_provincia_afiliado = eval("formulario_central.id_provincia"); var campo_apellidos_afiliado = eval("formulario_central.apellidos_afiliado"); var campo_email = eval("formulario_central.email"); var campo_telefono = eval("formulario_central.telefono"); var campo_url = eval("formulario_central.url"); var campo_descripcion = eval("formulario_central.descripcion"); var campo_codigo = eval("formulario_central.Codigo"); var campo_random = eval("formulario_central.Random"); var pasar = "&username="+campo_username.value; pasar += "&password="+campo_password.value; pasar += "&password2="+campo_password2.value; pasar += "&tipo_organizacion="+campo_tipo_organizacion.value; pasar += "&NIF="+campo_NIF.value; pasar += "&CIF="+campo_CIF.value; pasar += "&nombre_empresa="+campo_nombre_empresa.value; pasar += "&direccion_empresa="+campo_direccion_empresa.value; pasar += "&nombre_afiliado="+campo_nombre_afiliado.value; pasar += "&id_pais="+campo_id_pais_afiliado.value; pasar += "&id_provincia="+campo_id_provincia_afiliado.value; pasar += "&apellidos_afiliado="+campo_apellidos_afiliado.value; pasar += "&email="+campo_email.value; pasar += "&telefono="+campo_telefono.value; pasar += "&url="+campo_url.value; pasar += "&descripcion="+campo_descripcion.value; pasar += "&Codigo="+campo_codigo.value; pasar += "&Random="+campo_random.value; TB_show('Webmaster - Alta', url2show+'?'+pasar+'&height=100&width=300', ''); return false; } } function chequear_datosWebmaster(op){ text_password = eval("document.form_alta.password"); text_password2 = eval("document.form_alta.password2"); text_nombre_afiliado = eval("document.form_alta.nombre_afiliado"); text_apellidos_afiliado = eval("document.form_alta.apellidos_afiliado"); select_id_pais = eval("document.form_alta.id_pais"); select_id_provincia = eval("document.form_alta.id_provincia"); text_email = eval("document.form_alta.email"); text_telefono = eval("document.form_alta.telefono"); text_url = eval("document.form_alta.url"); text_descripcion = eval("document.form_alta.descripcion"); if(op == 1){ text_username = eval("document.form_alta.username"); if(text_username.value.length < 3){ alert("- El nombre de usuario debe ser mayor a 3 caracteres."); text_username.focus(); return false; } if(text_password.value.length < 3){ alert("- El password debe ser mayor a 3 caracteres."); text_password.focus(); return false; }else{ if(text_password.value != text_password2.value){ alert("- Los passwords no coinciden."); text_password.focus(); return false; } } }else{ if(text_password.value){ if(text_password.value.length < 3){ alert("- El password debe ser mayor a 3 caracteres."); text_password.focus(); return false; }else{ if(text_password.value != text_password2.value){ alert("- Los passwords no coinciden."); text_password.focus(); return false; } } } } if(op == 1){ text_nombre_empresa = eval("document.form_alta.nombre_empresa"); select_tipo_organizacion = eval("document.form_alta.tipo_organizacion"); if (document.form_alta.NIF.value == "") { document.form_alta.NIF.value = "12345678-Z"; } if (document.form_alta.CIF.value == "") { document.form_alta.CIF.value = "B-12345678"; } text_NIF = eval("document.form_alta.NIF"); text_CIF = eval("document.form_alta.CIF"); text_direccion_empresa = eval("document.form_alta.direccion_empresa"); if(select_tipo_organizacion.options[select_tipo_organizacion.selectedIndex].value==""){ alert("- Seleccione el tipo de organización."); return false; }else{ if(select_tipo_organizacion.options[select_tipo_organizacion.selectedIndex].value == 1){ if(!text_NIF.value){ alert("- Ingrese su NIF."); text_NIF.focus(); return false; }else{ var aux1 = new RegExp("^(([0-9]{8})([-]{0,1})([A-Za-z]{1}))$"); text_NIF.value = text_NIF.value.toUpperCase(); var resultAux1 = aux1.exec(text_NIF.value); if(!resultAux1){ alert("- NIF incorrecto"); text_NIF.focus(); return false; }else{ if(controlNIF(resultAux1[2]) != resultAux1[4]){ alert("- NIF incorrecto"); text_NIF.focus(); return false; } } } }else{ if(!text_CIF.value){ alert("- Ingrese su CIF."); text_CIF.focus(); return false; }else{ var aux1 = new RegExp("^(([A-Za-z]{1})([-]{0,1})([0-9]{8}))$"); var resultAux1 = aux1.exec(text_CIF.value); if(!resultAux1){ alert("- CIF incorrecto."); text_CIF.focus(); return false; } } if(text_nombre_empresa.value == ""){ alert("- Ingrese el nombre de su empresa."); text_nombre_empresa.focus(); return false; } if(text_direccion_empresa.value == ""){ alert("- Ingrese la dirección de su empresa."); text_direccion_empresa.focus(); return false; } } } } if(text_nombre_afiliado.value.length < 3){ alert("- Ingrese su nombre."); text_nombre_afiliado.focus(); return false; }else{ var aux1 = new RegExp("^[a-zA-Z ]+$"); var resultAux1 = aux1.exec(text_nombre_afiliado.value); if(!resultAux1){ alert("- Ingrese su nombre."); text_nombre_afiliado.focus(); return false; } } if(text_apellidos_afiliado.value.length < 3){ alert("- Ingrese sus apellidos."); text_apellidos_afiliado.focus(); return false; }else{ var aux1 = new RegExp("^[a-zA-Z ]+$"); var resultAux1 = aux1.exec(text_apellidos_afiliado.value); if(!resultAux1){ alert("- Ingrese sus apellidos"); text_apellidos_afiliado.focus(); return false; } } if(select_id_pais.options[select_id_pais.selectedIndex].value==""){ alert("- Seleccione su pais"); return false; }else{ if(select_id_provincia.options[select_id_provincia.selectedIndex].value==""){ alert("- Seleccione su provincia"); return false; } } if(!is_email(text_email.value)){ alert("- Ingrese un E-mail válido."); text_email.focus(); return false; } /* if(text_telefono.value.length < 5){ alert("- Ingrese un teléfono de contacto."); text_telefono.focus(); return false; } */ if(!isURL(text_url.value)){ text_url.focus(); return false; } if(op == 1){ text_codigo = eval("document.form_alta.Codigo"); var aux1 = new RegExp("^[0-9]+$"); var resultAux1 = aux1.exec(text_codigo.value); if(!resultAux1){ alert("- Ingrese el Código de seguridad."); text_codigo.focus(); return false; } } return true; } function verPreviewFormulario(url2Preview){ form_cliente = eval("document.form_alta.form_cliente"); var expresion=new RegExp("^([A-Za-z0-9_]+)$"); var resultado=expresion.exec(form_cliente.value); if (!resultado){ form_cliente.value = "SPE_form_alta"; } form_cliente = URLEncode(form_cliente.value); boton_cliente = eval("document.form_alta.boton_cliente"); var resultado=expresion.exec(boton_cliente.value); if (!resultado){ boton_cliente.value = "SPE_boton_cliente"; } boton_cliente = URLEncode(boton_cliente.value); table_size = eval("document.form_alta.table_size"); var expresion=new RegExp("^([0-9]+)([%]*)$"); var resultado=expresion.exec(table_size.value); if (!resultado){ table_size.value = "100%"; } table_size = URLEncode(table_size.value); table_bgcolor = eval("document.form_alta.table_bgcolor"); var expresion=new RegExp("^#([a-zA-Z0-9]+){6}$"); var resultado=expresion.exec(table_bgcolor.value) if (!resultado){ table_bgcolor.value = "#FFFFFF"; } table_bgcolor = URLEncode(table_bgcolor.value); table_align = eval("document.form_alta.table_align"); table_align = URLEncode(table_align.options[table_align.selectedIndex].value); text_font = eval("document.form_alta.text_font"); var expresion=new RegExp("^([a-zA-Z0-9 , -_]+)$"); var resultado=expresion.exec(text_font.value) if (!resultado){ text_font.value = "Verdana, Arial, Helvetica, sans-serif"; } text_font = URLEncode(text_font.value); text_color = eval("document.form_alta.text_color"); var expresion=new RegExp("^#([a-zA-Z0-9]+){6}$"); var resultado=expresion.exec(text_color.value) if (!resultado){ text_color.value = "#000000"; } text_color = URLEncode(text_color.value); text_align = eval("document.form_alta.text_align"); text_align = URLEncode(text_align.options[text_align.selectedIndex].value); text_size = eval("document.form_alta.text_size"); text_size = URLEncode(text_size.options[text_size.selectedIndex].value); titulo_font = eval("document.form_alta.titulo_font"); var expresion=new RegExp("^#([a-zA-Z0-9]+){6}$"); var resultado=expresion.exec(titulo_font.value); if(!resultado){ titulo_font.value = "Verdana, Arial, Helvetica, sans-serif"; } titulo_font = URLEncode(titulo_font.value); titulo_color = eval("document.form_alta.titulo_color"); var expresion=new RegExp("^#([a-zA-Z0-9]+){6}$"); var resultado=expresion.exec(titulo_color.value) if(!resultado){ titulo_color.value = "#000000"; } titulo_color = URLEncode(titulo_color.value); titulo_size = eval("document.form_alta.titulo_size"); titulo_size = URLEncode(titulo_size.options[titulo_size.selectedIndex].value); //var cant_columnas = eval("document.form_alta.cant_columnas"); var cant_columnas = 2; var expresion=new RegExp("^([0-9]+)$"); var resultado=expresion.exec(cant_columnas.value) if(!resultado){ cant_columnas = "2"; } cant_columnas = URLEncode(cant_columnas); style_input = eval("document.form_alta.style_input"); var expresion=new RegExp("^([a-zA-Z0-9 ,#-:;]+)$"); var resultado=expresion.exec(style_input.value); if(!resultado){ style_input.value = "border:1px solid #CCCCCC; "; } style_input = URLEncode(style_input.value); view(url2Preview+"?form_cliente="+form_cliente+"&boton_cliente="+boton_cliente +"&table_size="+table_size+"&table_bgcolor="+table_bgcolor+"&table_align="+table_align +"&text_font="+text_font+"&text_color="+text_color+"&text_align="+text_align +"&text_size="+text_size+"&titulo_font="+titulo_font+"&titulo_color="+titulo_color +"&titulo_size="+titulo_size+"&cant_columnas="+cant_columnas+"&style_input="+style_input, "preview", 500, 500, "yes"); } function cambiar_color(color, cuadradito){ try{ document.getElementById(cuadradito).style.background = color; }catch(err){ } } function nada(nombre_boton){ alert('En este momento se envian los datos y retorna el control a tu formulario.'); document.getElementById(nombre_boton).value = "Guardar"; document.getElementById(nombre_boton).disabled = false; return false; } function enviarConfiguracionCodigo(url2show){ form_cliente = eval("document.form_alta.form_cliente"); var expresion=new RegExp("^([A-Za-z0-9_]+)$"); var resultado=expresion.exec(form_cliente.value); if (!resultado){ form_cliente.value = "SPE_form_alta"; } form_cliente = URLEncode(form_cliente.value); boton_cliente = eval("document.form_alta.boton_cliente"); var resultado=expresion.exec(boton_cliente.value); if (!resultado){ boton_cliente.value = "SPE_boton_cliente"; } boton_cliente = URLEncode(boton_cliente.value); table_size = eval("document.form_alta.table_size"); var expresion=new RegExp("^([0-9]+)([%]*)$"); var resultado=expresion.exec(table_size.value); if (!resultado){ table_size.value = "100%"; } table_size = URLEncode(table_size.value); table_bgcolor = eval("document.form_alta.table_bgcolor"); var expresion=new RegExp("^#([a-zA-Z0-9]+){6}$"); var resultado=expresion.exec(table_bgcolor.value) if (!resultado){ table_bgcolor.value = "#FFFFFF"; } table_bgcolor = URLEncode(table_bgcolor.value); table_align = eval("document.form_alta.table_align"); table_align = URLEncode(table_align.options[table_align.selectedIndex].value); text_font = eval("document.form_alta.text_font"); var expresion=new RegExp("^([a-zA-Z0-9 , -_]+)$"); var resultado=expresion.exec(text_font.value) if (!resultado){ text_font.value = "Verdana, Arial, Helvetica, sans-serif"; } text_font = URLEncode(text_font.value); text_color = eval("document.form_alta.text_color"); var expresion=new RegExp("^#([a-zA-Z0-9]+){6}$"); var resultado=expresion.exec(text_color.value) if (!resultado){ text_color.value = "#000000"; } text_color = URLEncode(text_color.value); text_align = eval("document.form_alta.text_align"); text_align = URLEncode(text_align.options[text_align.selectedIndex].value); text_size = eval("document.form_alta.text_size"); text_size = URLEncode(text_size.options[text_size.selectedIndex].value); titulo_font = eval("document.form_alta.titulo_font"); var expresion=new RegExp("^#([a-zA-Z0-9]+){6}$"); var resultado=expresion.exec(titulo_font.value); if(!resultado){ titulo_font.value = "Verdana, Arial, Helvetica, sans-serif"; } titulo_font = URLEncode(titulo_font.value); titulo_color = eval("document.form_alta.titulo_color"); var expresion=new RegExp("^#([a-zA-Z0-9]+){6}$"); var resultado=expresion.exec(titulo_color.value) if(!resultado){ titulo_color.value = "#000000"; } titulo_color = URLEncode(titulo_color.value); titulo_size = eval("document.form_alta.titulo_size"); titulo_size = URLEncode(titulo_size.options[titulo_size.selectedIndex].value); //cant_columnas = eval("document.form_alta.cant_columnas"); var cant_columnas = 2; var expresion=new RegExp("^([0-9]+)$"); var resultado=expresion.exec(cant_columnas) if(!resultado){ cant_columnas = "2"; } cant_columnas = URLEncode(cant_columnas); style_input = eval("document.form_alta.style_input"); var expresion=new RegExp("^([a-zA-Z0-9 ,#-:;]+)$"); var resultado=expresion.exec(style_input.value); if(!resultado){ style_input.value = "border:1px solid #CCCCCC; "; } style_input = URLEncode(style_input.value); var pasar = "form_cliente="+form_cliente; pasar += "&boton_cliente="+boton_cliente; pasar += "&table_size="+table_size; pasar += "&table_bgcolor="+table_bgcolor; pasar += "&table_align="+table_align; pasar += "&text_font="+text_font; pasar += "&text_color="+text_color; pasar += "&text_align="+text_align; pasar += "&text_size="+text_size; pasar += "&titulo_font="+titulo_font; pasar += "&titulo_color="+titulo_color; pasar += "&titulo_size="+titulo_size; pasar += "&cant_columnas="+cant_columnas; pasar += "&style_input="+style_input; TB_show('Webmaster - Alta', url2show+'?'+pasar+'&height=100&width=300', ''); } function enviarLogin(url2show, op){ text_user = document.getElementById('nick'); text_pass = document.getElementById('password'); TB_show('Webmaster - Login', url2show+'?username='+text_user.value+'&password='+text_pass.value+'&op='+op+'&height=100&width=200', ''); } function enviarRecordar(url2show){ text_email = document.getElementById('recordar_email'); TB_show('Webmaster - Recordar', url2show+'?email='+text_email.value+'&height=100&width=200', ''); } function enviarFecha(url2go, divback, op){ if(op == 1){ var pasar = { "div":divback, "mes":document.getElementById('mes').options[document.getElementById('mes').selectedIndex].value, "anio":document.getElementById('anio').options[document.getElementById('anio').selectedIndex].value }; }else{ var pasar = { "div":divback, "anio":document.getElementById('anio').options[document.getElementById('anio').selectedIndex].value }; } $("#"+divback).slideUp("slow",''); document.getElementById(divback).innerHTML = mostrarCargador(2); ajax.get(url2go+"#"+divback, pasar); $("#"+divback).slideDown("slow",''); } function enviarModificacionWebmaster(url2show){ if(chequear_datosWebmaster(2)){ var formulario_central = eval("document.form_alta"); var campo_password = eval("formulario_central.password"); var campo_password2 = eval("formulario_central.password2"); var campo_tipo_organizacion = eval("formulario_central.tipo_organizacion"); var campo_NIF = eval("formulario_central.NIF"); var campo_CIF = eval("formulario_central.CIF"); var direccion_empresa = eval("formulario_central.direccion_empresa"); var campo_nombre_empresa = eval("formulario_central.nombre_empresa"); var campo_nombre_afiliado = eval("formulario_central.nombre_afiliado"); var campo_apellidos_afiliado = eval("formulario_central.apellidos_afiliado"); var campo_email = eval("formulario_central.email"); var campo_telefono = eval("formulario_central.telefono"); var campo_url = eval("formulario_central.url"); var campo_descripcion = eval("formulario_central.descripcion"); var pasar = "password="+campo_password.value; var campo_id_pais_afiliado = eval("formulario_central.id_pais"); var campo_id_provincia_afiliado = eval("formulario_central.id_provincia"); pasar += "&password2="+campo_password2.value; pasar +="&tipo_organizacion="+campo_tipo_organizacion.value; pasar +="&NIF="+campo_NIF.value; pasar +="&CIF="+campo_CIF.value; pasar +="&nombre_empresa="+campo_nombre_empresa.value; pasar += "&direccion_empresa="+direccion_empresa.value; pasar +="&nombre_afiliado="+campo_nombre_afiliado.value; pasar +="&apellidos_afiliado="+campo_apellidos_afiliado.value; pasar += "&id_pais="+campo_id_pais_afiliado.value; pasar += "&id_provincia="+campo_id_provincia_afiliado.value; pasar +="&email="+campo_email.value; pasar +="&telefono="+campo_telefono.value; pasar +="&url="+campo_url.value; pasar +="&descripcion="+campo_descripcion.value; TB_show('Webmaster - Modificar', url2show+'?'+pasar+'&height=100&width=200', ''); return false; } } function enviarModificacionConfiguracionCodigo(url2show){ form_cliente = eval("document.form_alta.form_cliente"); var expresion=new RegExp("^([A-Za-z0-9_]+)$"); var resultado=expresion.exec(form_cliente.value); if (!resultado){ form_cliente.value = "SPE_form_alta"; } form_cliente = URLEncode(form_cliente.value); boton_cliente = eval("document.form_alta.boton_cliente"); var resultado=expresion.exec(boton_cliente.value); if (!resultado){ boton_cliente.value = "SPE_boton_cliente"; } boton_cliente = URLEncode(boton_cliente.value); table_size = eval("document.form_alta.table_size"); var expresion=new RegExp("^([0-9]+)([%]*)$"); var resultado=expresion.exec(table_size.value); if (!resultado){ table_size.value = "100%"; } table_size = URLEncode(table_size.value); table_bgcolor = eval("document.form_alta.table_bgcolor"); var expresion=new RegExp("^#([a-zA-Z0-9]+){6}$"); var resultado=expresion.exec(table_bgcolor.value) if (!resultado){ table_bgcolor.value = "#FFFFFF"; } table_bgcolor = URLEncode(table_bgcolor.value); table_align = eval("document.form_alta.table_align"); table_align = URLEncode(table_align.options[table_align.selectedIndex].value); text_font = eval("document.form_alta.text_font"); var expresion=new RegExp("^([a-zA-Z0-9 , -_]+)$"); var resultado=expresion.exec(text_font.value) if (!resultado){ text_font.value = "Verdana, Arial, Helvetica, sans-serif"; } text_font = URLEncode(text_font.value); text_color = eval("document.form_alta.text_color"); var expresion=new RegExp("^#([a-zA-Z0-9]+){6}$"); var resultado=expresion.exec(text_color.value) if (!resultado){ text_color.value = "#000000"; } text_color = URLEncode(text_color.value); text_align = eval("document.form_alta.text_align"); text_align = URLEncode(text_align.options[text_align.selectedIndex].value); text_size = eval("document.form_alta.text_size"); text_size = URLEncode(text_size.options[text_size.selectedIndex].value); titulo_font = eval("document.form_alta.titulo_font"); var expresion=new RegExp("^#([a-zA-Z0-9]+){6}$"); var resultado=expresion.exec(titulo_font.value); if(!resultado){ titulo_font.value = "Verdana, Arial, Helvetica, sans-serif"; } titulo_font = URLEncode(titulo_font.value); titulo_color = eval("document.form_alta.titulo_color"); var expresion=new RegExp("^#([a-zA-Z0-9]+){6}$"); var resultado=expresion.exec(titulo_color.value) if(!resultado){ titulo_color.value = "#000000"; } titulo_color = URLEncode(titulo_color.value); titulo_size = eval("document.form_alta.titulo_size"); titulo_size = URLEncode(titulo_size.options[titulo_size.selectedIndex].value); cant_columnas = eval("document.form_alta.cant_columnas"); var expresion=new RegExp("^([0-9]+)$"); var resultado=expresion.exec(cant_columnas.value) if(!resultado){ cant_columnas.value = "2"; } cant_columnas = URLEncode(cant_columnas.value); style_input = eval("document.form_alta.style_input"); var expresion=new RegExp("^([a-zA-Z0-9 ,#-:;]+)$"); var resultado=expresion.exec(style_input.value); if(!resultado){ style_input.value = "border:1px solid #CCCCCC; "; } style_input = URLEncode(style_input.value); var pasar = "form_cliente="+form_cliente; pasar += "&boton_cliente="+boton_cliente; pasar += "&table_size="+table_size; pasar += "&table_bgcolor="+table_bgcolor pasar += "&table_align="+table_align; pasar += "&text_font="+text_font; pasar += "&text_color="+text_color; pasar += "&text_align="+text_align; pasar += "&text_size="+text_size; pasar += "&titulo_font="+titulo_font; pasar += "&titulo_color="+titulo_color; pasar += "&titulo_size="+titulo_size; pasar += "&cant_columnas="+cant_columnas; pasar += "&style_input="+style_input; TB_show('Webmaster - Modificar', url2show+'?'+pasar+'&height=100&width=200', ''); } function reporte(url2go, divback){ $("#"+divback).slideUp("slow",''); if(document.getElementById('tipo').options[document.getElementById('tipo').selectedIndex].value == ""){ document.getElementById('tipo').options[0].selected = true; } var currentTime = new Date() var month = currentTime.getMonth() + 1 var day = currentTime.getDate() var year = currentTime.getFullYear() if(document.getElementById('fecha1').value == ""){ document.getElementById('fecha1').value = day+"/"+month+"/"+year; } if(document.getElementById('fecha2').value == ""){ document.getElementById('fecha2').value = day+"/"+month+"/"+year; } document.getElementById(divback).innerHTML = mostrarCargador(2); var pasar = { "tipo":document.getElementById('tipo').options[document.getElementById('tipo').selectedIndex].value, "fecha1":document.getElementById('fecha1').value, "fecha2":document.getElementById('fecha2').value } ajax.get(url2go+"#"+divback, pasar); $("#"+divback).slideDown("slow",''); } function chk_pais(op, idP){ var p2; var p; select_pais = eval("document.form_alta.id_pais"); select_provincia = eval("document.form_alta.id_provincia"); p = select_pais.options[select_pais.selectedIndex].value; p2 = reemplazarGuion(select_pais.options[select_pais.selectedIndex].value); select_pais.options[select_pais.selectedIndex].value = p2; var pais_=new Array(""); var paisstnames_=new Array(""); var pais_1 = new Array("", "353", "354", "355", "356", "357", "358", "359", "361", "362", "363", "364", "365", "366", "367", "368", "370", "371", "372", "373", "374", "375", "376", "360", "377", "369", "389", "387", "378", "379", "380", "381", "382", "383", "384", "385", "386", "388", "390", "391", "392", "393", "394", "395", "396", "397", "398", "399", "400", "401", "402"); var paisstnames_1 = new Array("", "Álava", "Albacete", "Alicante", "Almería", "Asturias", "Ávila", "Badajoz", "Barcelona", "Burgos", "Cáceres", "Cádiz", "Cantabria", "Castellón", "Ciudad Real", "Córdoba", "Cuenca", "Gerona", "Granada", "Guadalajara", "Guipúzcoa", "Huelva", "Huesca", "Islas Baleares", "Jaén", "La Coruña", "La Rioja", "Las Palmas", "León", "Lérida", "Lugo ", "Madrid", "Málaga", "Murcia", "Navarra", "Orense", "Palencia", "Pontevedra", "Salamanca", "Santa Cruz de Tenerife", "Segovia", "Sevilla", "Soria", "Tarragona", "Teruel", "Toledo", "Valencia", "Valladolid", "Vizcaya", "Zamora", "Zaragoza"); var pais_2 = new Array("", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31", "32", "33", "34", "35", "36", "37", "42", "38", "39", "40", "41"); var paisstnames_2 = new Array("", "Aveiro", "Azores", "Baixo Alentejo", "Beira Alta", "Beja", "Braga", "Bragança", "Castelo Branco", "Coimbra", "Douro", "Estremadura", "Faro (Algarve)", "Guarda", "Leira", "Lisboa", "Madeira", "Oeiras", "Portalegre", "Porto", "resto", "Santarem", "Setubal", "VilaReal", "Viseu"); var pais_3 = new Array("", "73", "52", "54", "46", "47", "55", "58", "71", "56", "68", "44", "60", "51", "57", "65", "66", "67", "43", "45", "63", "69", "48", "50", "70", "74", "59", "53", "49", "62", "61", "72", "64"); var paisstnames_3 = new Array("", "Amazona", "Antioquia", "Arauca", "Atlántico", "Bolivar", "Boyaca", "Caldas", "Caqueta", "Casanare", "Cauca", "Cesar", "Choco", "Cordoba", "Cundinamarca", "Guania", "Guaviare", "Huila", "La Guajira", "Magdalena", "Meta", "Nariño", "Norte de Santander", "Providencia y S. Andres", "Putumayo", "resto", "Risaralda", "Santander", "Sucre", "Tolima", "Valle del Cauca", "Vaupes", "Vichada"); var pais_4 = new Array("", "76", "75", "77", "78", "79", "80", "81", "82", "83", "84", "85", "86", "87", "88", "89", "90", "100", "91", "92", "93", "94", "95", "96", "97", "98", "99"); var paisstnames_4 = new Array("", "Buenos Aires", "Capital Federal", "Catamarca", "Chaco", "Chubut", "Cordoba", "Corrientes", "Entre Rios", "Formosa", "Jujuy", "La Pampa", "La Rioja", "Mendoza", "Misiones", "Neuquen", "Patagonia", "resto", "Rio Negro", "Salta", "San Juan", "San Luis", "Santa Cruz", "Santa Fe", "Santiago del Estero", "Tierra del Fuego", "Tucumán"); var pais_5 = new Array("", "111", "112", "113", "114", "115", "116", "117", "118", "119", "120", "121", "122", "123", "125", "124", "126", "127", "137", "128", "129", "130", "131", "132", "133", "135", "134", "136"); var paisstnames_5 = new Array("", "Acre", "Alagoas", "Amapá", "Amazonas", "Bahia", "Ceará", "Distrito Federal", "Espirito Santo", "Goias", "Maranhão", "Mato Grosso", "Mato Grosso do Sul", "Minas Gerais", "Pará", "Paraíba", "Pernambuco", "Piaui", "resto", "Rio de Janeiro", "Rio Grande do Norte", "Rio Grande do Sul", "Rondonia", "Roraima", "Santa Catarina", "São Paulo", "Sergipe", "Tocantins"); var pais_6 = new Array("", "138", "139", "140", "141", "142", "144", "143", "145", "146", "147", "151", "148", "149", "150"); var paisstnames_6 = new Array("", "Antofagasta", "Asién G. C. Ibáñez", "Atacama", "Biobio", "Coquimbo", "L. G. Bernardo O'Higgins", "La Araucania", "Los Lagos", "Magallanes y la A.", "Maule", "resto", "Santiago", "Tarapacá", "Valparaiso/Rapa Nui"); var pais_7 = new Array("", "108", "101", "103", "102", "104", "109", "105", "110", "107", "106"); var paisstnames_7 = new Array("", "Beni", "Chuquisaca", "Cochabamba", "La Paz", "Oruro", "Pando", "Potosí", "resto", "Santa Cruz", "Tarija"); var pais_8 = new Array("", "152", "153", "154", "156", "155"); var paisstnames_8 = new Array("", "Ciudad de la Habana", "La Habana", "Matanzas", "resto", "Santiago de Cuba"); var pais_9 = new Array("", "158", "157"); var paisstnames_9 = new Array("", "resto", "Santo Domingo"); var pais_10 = new Array("", "159", "160", "161", "162", "163", "164", "165", "166", "167", "168", "170", "169"); var paisstnames_10 = new Array("", "Azuay", "Chimborazo", "Esmeraldas", "Galapagos", "Guayas", "Imbabura", "Loja", "Manabi", "Napo", "Pichincha", "resto", "Tungurahua"); var pais_11 = new Array("", "171", "172", "173", "174", "176", "175"); var paisstnames_11 = new Array("", "Antigua Guatemala", "Guatemala", "Huehuetenango", "Jalapa", "Resto", "Sololá"); var pais_12 = new Array("", "185", "178", "179", "180", "181", "182", "183", "184", "177", "186", "187", "188", "189", "190", "191", "192", "193", "194", "195", "196", "197", "198", "199", "209", "200", "201", "202", "203", "204", "205", "206", "207", "208"); var paisstnames_12 = new Array("", "Aguascalientes", "Baja California", "Baja California Sur", "Campeche", "Chiapas", "Chihuahua", "Coahuila", "Colima", "Distrito Federal", "Durango", "Guanajuato", "Guerrero", "Hidalgo", "Jalisco", "Mexico", "Michoacan de Ocampo", "Morelos", "Nayarit", "Nuevo Leon", "Oaxaca", "Puebla", "Querétaro", "Quintana Roo", "resto", "San Luis Potosí", "Sinaloa", "Sonora", "Tabasco", "Tamaulipas", "Tlaxcala", "Veracruz-Llave", "Yucatan", "Zacatecas"); var pais_13 = new Array("", "212", "213", "214", "215", "216", "217", "218", "211", "219", "220", "210", "221", "230", "222", "223", "224", "225", "226", "227", "228", "229"); var paisstnames_13 = new Array("", "Artigas", "Canelones", "Cerro Largo", "Colonia", "Durazno", "Flores", "Florida", "Interior", "Lavalleja", "Maldonado", "Montevideo", "Paysandú", "resto", "Río Negro", "Rivera", "Rocha", "Salto", "San José", "Soriano", "Tacuarembó", "Treinta y Tres"); var pais_14 = new Array("", "231", "234", "232", "233", "235"); var paisstnames_14 = new Array("", "Boquete", "Ciudad de Panamá", "Colon", "Paitilla", "resto"); var pais_15 = new Array("", "236", "237", "238", "239", "240", "241"); var paisstnames_15 = new Array("", "Estelí", "Granada", "Jinotepe", "León", "Managua", "resto"); var pais_16 = new Array("", "242", "243", "247", "244", "245", "246"); var paisstnames_16 = new Array("", "El Progreso", "La Ceiba", "resto", "San Pedro Sula", "Tegucigalpa", "Tela"); var pais_17 = new Array("", "248", "251", "249", "250"); var paisstnames_17 = new Array("", "Colonia Escalón", "resto", "San Salvador", "Soyapango"); var pais_18 = new Array("", "252", "253"); var paisstnames_18 = new Array("", "Asunción", "resto"); var pais_19 = new Array("", "261", "258", "255", "257", "260", "259", "254", "262", "256"); var paisstnames_19 = new Array("", "Arequipa", "Callao", "Chiclayo", "Chimbote", "Cuzco", "Lima", "Piura", "resto", "Trujillo"); var pais_20 = new Array("", "265", "266", "264", "267", "268", "263"); var paisstnames_20 = new Array("", "Bayamon", "Caguas", "Carolina", "Mayagüez", "resto", "San Juan"); var pais_21 = new Array("", "269", "270", "271", "272", "273", "274", "275", "276", "277", "278", "297", "279", "280", "281", "282", "283", "298", "284", "285", "286", "287", "288", "289", "299", "290", "291", "292", "293", "294", "295", "296", "301", "302", "303", "304", "305", "306", "351", "307", "308", "309", "310", "311", "312", "313", "314", "315", "316", "317", "318", "319", "300"); var paisstnames_21 = new Array("", "Alabama", "Alaska", "Arizona", "Arkansas", "California", "Colorado", "Connecticut", "Delaware", "Florida", "Georgia", "Hampshire", "Hawaii", "Idaho", "Illinois", "Indiana", "Iowa", "Jersey", "Kansas", "Kentucky", "Louisiana", "Maine", "Maryland", "Massachussetts", "Mexico", "Michigan", "Minnesota", "Mississippi", "Missouri", "Montana", "Nebraska", "Nevada", "North Carolina", "North Dakota", "Ohio", "Oklahoma", "Oregon", "Pennsylvania", "resto", "Rhode Island", "South Carolina", "South Dakota", "Tennessee", "Texas", "Utah", "Vermont", "Virginia", "Washington", "Washington D.C.", "West Virginia", "Wisconsin", "Wyoming", "York"); var pais_22 = new Array("", "321", "322", "323", "324", "325", "326", "327", "328", "329", "320", "330", "331", "332", "333", "334", "335", "336", "337", "352", "338", "339", "340", "341", "342"); var paisstnames_22 = new Array("", "Amazonas", "Anzoategui", "Apure", "Arague", "Barinas", "Bolivar", "Carabobo", "Cojedes", "Delta Amacuro", "Distrito Federal", "Falcon", "Guarico", "Lara", "Merida", "Miranda", "Monagas", "Nueva Esparta", "Portuguesa", "resto", "Sucre", "Tachira", "Trujillo", "Yaracuy", "Zulia"); var pais_23 = new Array("", "344", "345", "346", "347", "348", "349", "350", "343"); var paisstnames_23 = new Array("", "Alajuela", "Cartago", "Guanacaste", "Heredia", "Limon", "Puntarenas", "resto", "San Jose"); var pais_24 = new Array("", "408", "404", "405", "406", "407", "403", "409"); var paisstnames_24 = new Array("", "Andorra la Vella", "Canillo", "Encamp", "Escaldes-Engordany", "La Massana", "Ordina", "Sant Julià de Lòria"); var pais_25 = new Array("", "437", "435", "436"); var paisstnames_25 = new Array("", "Bruselas-Capital", "Flandes", "Valonia"); var pais_26 = new Array("", "438", "439", "440", "441", "442", "443", "444", "445", "446", "447", "448", "449", "450", "451", "452", "453", "454", "455", "456", "457", "458", "459", "460", "461", "462", "463", "464", "465"); var paisstnames_26 = new Array("", "Blagoevgrad", "Burgas", "Dobrich", "Gabrovo", "Haskovo", "Kardzhali", "Kyustendil", "Lovech", "Montana", "Pazardzhik", "Pernik", "Pleven", "Plovdiv", "Razgrad", "Ruse", "Shumen", "Silistra", "Sliven", "Smolyan", "Sofia", "Sofia Region", "Stara Zagora", "Targovishte", "Varna", "Veliko Tarnovo", "Vidin", "Vratsa", "Yambol"); var pais_27 = new Array("", "466"); var paisstnames_27 = new Array("", "Croacia"); var pais_28 = new Array("", "481", "482", "467", "469", "474", "468", "470", "475", "480", "476", "478", "471", "472", "473", "477", "479"); var paisstnames_28 = new Array("", "Aarhus (distrito)", "Bornholm", "Copenhague", "Copenhague", "Fionia", "Frederiksberg", "Frederiksborg", "Jutlandia Meridional", "Jutlandia Septentrional", "Ribe", "Ringkjobing", "Roskilde", "Selandia Occidental", "Storstrom", "Vejle", "Viborg"); var pais_29 = new Array("", "489", "483", "490", "486", "488", "485", "484", "487"); var paisstnames_29 = new Array("", "Banská Bystrica", "Bratislava", "Kosice", "Nitra", "Presov", "Trencín", "Trnava", "Zilina"); var pais_30 = new Array("", "497", "499", "501", "493", "500", "502", "498", "492", "491", "494", "496", "495"); var paisstnames_30 = new Array("", "Dolenjska", "Gorenjska", "Goriska", "Koroska", "Notranjsko-kraska", "Obalno-kraska", "Ostredjeslovenska", "Podravska", "Pomurska", "Savinjska", "Spodnjeposavska", "Zasavska"); var pais_31 = new Array("", "503", "504", "505", "506", "507", "508", "509", "510", "511", "512", "513", "514", "515", "516", "517"); var paisstnames_31 = new Array("", "Harju", "Hiiu", "Ida-Viru", "Jarva", "Jogeva", "Laane", "Laane-Viru", "Parnu", "Polva", "Rapla", "Saare", "Tartu", "Valga", "Viljandi", "Voru"); var pais_32 = new Array("", "523", "518", "519", "520", "522", "521"); var paisstnames_32 = new Array("", "Aland", "Finlandia Meridional", "Finlandia Occidental", "Finlandia Oriental", "Laponia", "Oulu"); var pais_33 = new Array("", "526", "528", "529", "527", "524", "525", "530"); var paisstnames_33 = new Array("", "Alta Normandía", "Baja Normandía", "Borgoña", "Centro", "Champaña-Ardenas", "Picardía", "Resto"); var pais_34 = new Array("", "531", "534", "540", "538", "536", "532", "542", "537", "533", "543", "535", "539", "541"); var paisstnames_34 = new Array("", "Ática", "Creta", "Egeo meridional", "Egeo septentrional", "Epiro", "Grecia central", "Grecia occidental", "Islas Jónicas", "Macedonia central", "Macedonia occidental", "Macedonia oriental y Tracia", "Peloponeso", "Tesalia"); var pais_35 = new Array("", "548", "551", "550", "549", "555", "554", "552", "556", "546", "547", "544", "553", "545"); var paisstnames_35 = new Array("", "Baraya", "Békés", "Csongrád", "Fejér", "Heves", "Nógrad", "Pest", "Resto", "Somogy", "Tolna", "Vas", "Veszprém", "Zala"); var pais_36 = new Array("", "557", "558", "559", "560", "561", "562", "563", "564", "565", "566", "567", "568", "569", "570", "571", "572", "573", "574", "575", "576", "577", "578", "579", "580", "581", "582"); var paisstnames_36 = new Array("", "Carlow", "Cavan", "Clare", "Cork", "Donegal", "Dublín", "Galway", "Kerry", "Kildare", "Kilkenny", "Laois", "Leitrim", "Limerick", "Longford", "Louth", "Mayo", "Meath", "Monaghan", "Offaly", "Roscommon", "Sligo", "Tipperary", "Waterford", "Westmeath", "Wexford", "Wicklow"); var pais_37 = new Array("", "595", "600", "596", "597", "598", "601", "587", "588", "592", "591", "583", "584", "599", "585", "602", "593", "589", "594", "586", "590"); var paisstnames_37 = new Array("", "Abruzzo, L'Aquila", "Apulia, Bari", "Basilicata, Potenza", "Calabria, Catanzaro", "Campania, Nápoles", "Cerdeña, Cagliari", "Emilia-Romaña, Bolonia", "Friuli-Venecia Julia, Trieste", "Las Marcas, Ancona", "Lazio Roma", "Liguria,Génova", "Lombardía,Milán", "Molise, Campobasso", "Piamonte, Turín", "Sicilia, Palermo", "Toscana, Florencia", "Trentino - Alto Adigio, Trento", "Umbría, Perugia", "Valle de Aosta, Aosta", "Véneto, Venecia"); var pais_38 = new Array("", "603", "604", "605"); var paisstnames_38 = new Array("", "Dikrech", "Gréiwemaacher", "Letzebuerg"); var pais_39 = new Array("", "606"); var paisstnames_39 = new Array("", "Mónaco"); var pais_40 = new Array("", "607", "608", "609", "610", "611", "612", "613", "615", "614", "616", "617", "618", "619", "620", "621", "622", "623", "624", "625"); var paisstnames_40 = new Array("", "Akershus", "Aust-Agder", "Buskerud", "Finnmark", "Hedmark", "Hordaland", "More og Romsdal", "Nord-Trondelag", "Nordland", "Oppland", "Oslo (capital)", "Ostfold", "Rogaland", "Sogn og Fjordane", "Sor-Trondelag", "Telemark", "Troms", "Vest-Agder", "Vestfold"); var pais_41 = new Array("", "636", "628", "632", "627", "626", "630", "634", "633", "637", "629", "631", "635"); var paisstnames_41 = new Array("", "Brabante Septentrional", "Drente", "Flevolanda", "Frisia", "Groninga", "Güeldres", "Holanda Meridional", "Holanda Septentrional", "Limburgo", "Overijssel", "Utrecht", "Zelanda"); var pais_42 = new Array("", "638", "639", "652", "641", "643", "640", "644", "645", "642", "647", "648", "653", "650", "649", "646", "651"); var paisstnames_42 = new Array("", "Baja Silesia", "Cuyavia y Pomerania", "Gran Polonia", "Lebus", "Lódz", "Lublin", "Mazovia", "Opole", "Pequeña Polonia", "Podlaquia", "Pomerania", "Pomerania Occidental", "Santa Cruz", "Silesia", "Subcarpacia", "Varmia y Masuria"); var pais_43 = new Array("", "745", "720", "721", "722", "654", "723", "724", "725", "655", "726", "656", "746", "709", "657", "658", "727", "728", "710", "659", "660", "702", "729", "730", "661", "666", "731", "662", "663", "664", "665", "732", "743", "711", "733", "703", "667", "734", "712", "752", "706", "708", "668", "713", "697", "698", "753", "704", "705", "669", "670", "671", "714", "672", "749", "673", "747", "748", "750", "751", "754", "674", "675", "735", "676", "736", "677", "737", "738", "715", "739", "699", "700", "755", "740", "741", "742", "678", "679", "680", "681", "744", "716", "682", "707", "756", "717", "683", "684", "757", "685", "718", "686", "687", "689", "688", "719", "758", "690", "691", "701", "692", "693", "694", "695", "696"); var paisstnames_43 = new Array("", "Anguila", "Antrim", "Ards", "Armagh", "Avon", "Ballymena", "Ballymoney", "Banbridge", "Bedfordshire", "Belfast", "Berkshire", "Bermuda", "Borders", "Buckinghamshire", "Cambridgeshire", "Carrickfergus", "Castlereagh", "Central", "Cheshire", "Cleveland", "Clwyd", "Coleraine", "Cookstown", "Cornualles", "County Durham", "Craigavon", "Cumbria", "Derbyshire", "Devon", "Dorset", "Down", "Down del Norte", "Dumfries y Galloway", "Dungannon", "Dyfed", "Essex", "Fermanagh", "Fife", "Gibraltar", "Glamorgan Central", "Glamorgan del Sur y Glamorgan Occidental", "Gloucestershire", "Grampian", "Gran Londres", "Gran Manchester", "Guernsey", "Gwent", "Gwynedd", "Hampshire", "Herefordshire", "Hertfordshire", "Highland", "Humberside", "Isla de Man", "Isla de Wight", "Islas Caimán", "Islas Malvinas", "Islas Pitcairn", "Islas Vírgenes Británicas", "Jersey", "Kent", "Lancashire", "Larne", "Leicestershire", "Limavady", "Lincolnshire", "Lisburn", "Londonderry", "Lothian", "Magherafelt", "Merseyside", "Midlands Occidental", "Montserrat", "Moyle", "Newry y Mourne", "Newtownabbey", "Norfolk", "Northamptonshire", "Northumberland", "Nottinghamshire", "Omagh y Strabane", "Orcadas", "Oxfordshire", "Powys", "Santa Elena", "Shetland", "Shropshire", "Somerset", "South Georgia e Islas Sandwich del Sur", "Staffordshire", "Strathclyde", "Suffolk", "Surrey", "Sussex Occidental", "Sussex Oriental", "Tayside e Islas Occidentales", "Territorio Británico del Océano Índico y Turks y Caicos", "Tyne", "Warwickshire", "Wear", "Wiltshire", "Worcestershire", "Yorkshire del Norte", "Yorkshire del Sur", "Yorkshire Occidental"); var pais_44 = new Array("", "769", "760", "763", "762", "764", "761", "765", "766", "767", "768", "759", "770", "771", "772"); var paisstnames_44 = new Array("", "Bohemia Central", "Bohemia Meridional", "Hradec Králové", "Karlovy Vary", "Liberec", "Moravia Meridional", "Moravia-Silesia", "Olomouc", "Pardubice", "Plzen", "Praga", "Ústí nad Labem", "Vysocina", "Zlín"); var pais_45 = new Array("", "773", "774", "775", "776", "777", "778", "779", "781", "780", "782", "784", "783", "785", "786", "787", "788", "789", "790", "791", "792", "793", "794", "795", "796", "797", "798", "799", "800", "801", "802", "803", "805", "804", "806", "807", "808", "809", "810", "812", "811", "813"); var paisstnames_45 = new Array("", "Alba", "Arad", "Arges", "Bacau", "Bihor", "Bistrita-Nasaud", "Botosani", "Braila", "Brasov", "Buzau", "Calarasi", "Caras-Severin", "Cluj", "Constanta", "Covasna", "Dambovita", "Dolj", "Galati", "Giurgiu", "Gorj", "Harghita", "Hunedoara", "Ialomita", "Iasi", "Ilfov", "Maramures", "Mehedinti", "Mures", "Neamt", "Olt", "Prahova", "Salaj", "Satu Mare", "Sibiu", "Suceava", "Teleorman", "Timis", "Tulcea", "Valcea", "Vaslui", "Vrancea"); var pais_46 = new Array("", "814", "819", "818", "817", "820", "816", "815"); var paisstnames_46 = new Array("", "Distrito Federal Central", "Distrito Federal de los Urales", "Distrito Federal de Siberia", "Distrito Federal del Lejano Oriente", "Distrito Federal del Volga", "Distrito Federal Noroeste", "Distrito Federal Sur"); var pais_47 = new Array("", "821", "822", "824", "823", "825", "826", "827", "828", "829", "830", "840", "841", "831", "833", "832", "834", "835", "836", "837", "838", "839"); var paisstnames_47 = new Array("", "Blekinge", "Dalarna (Dalecarlia)", "Gavleborg", "Gotland", "Halland", "Jamtland", "Jonkoping", "Kalmar", "Kronoberg", "Norrbotten", "orebro", "ostergotland", "Skane (Escania)", "Sodermanland", "Stockholm (Estocolmo)", "Uppsala", "Varmland", "Vasterbotten", "Vasternorrland", "Vastmanland", "Vastra Gotaland"); var pais_48 = new Array("", "842", "843", "844", "846", "845", "847", "848", "849", "850", "851", "852", "853", "854", "856", "855", "860", "857", "858", "859", "862", "861", "863", "864", "865", "866", "867"); var paisstnames_48 = new Array("", "Appenzell Rodas Exteriores", "Appenzell Rodas Interiores", "Argovia", "Basilea-Campaña", "Basilea-Ciudad", "Berna", "Friburgo", "Ginebra", "Glaris", "Grisones", "Jura", "Lucerna", "Neuchatel", "Nidwalden", "Obwalden", "Sankt Gallen", "Schaffhausen", "Schwyz", "Soleura", "Tesino", "Turgovia", "Uri", "Valais", "Vaud", "Zug", "Zúrich"); var pais_49 = new Array("", "873", "872", "874", "875", "876", "877", "869", "871", "892", "878", "879", "880", "881", "882", "883", "886", "885", "884", "888", "887", "870", "889", "890", "891", "893", "894", "895", "896", "868", "897", "898", "899", "900", "901"); var paisstnames_49 = new Array("", "Anatolia Central", "Anatolia Occidental", "Anatolia Suroriental y Anatolia Oriental", "Cherkasy", "Chernihiv", "Chernivtsi", "Costa del Mar Negro", "Costa del Mediterráneo", "Crimea", "Dnipropetrovs'k", "Donets'k", "Ivano-Frankivs'k", "Kharkiv", "Kherson", "Khmel'nyts'kyy", "Kiev (región)", "Kiev *", "Kirovohrad", "L'viv", "Luhans'k", "Mar de Mármara y Costa del Egeo", "Mykolayiv", "Odessa", "Poltava", "Rivne", "Sevastopol *", "Sumy", "Ternopil'", "Tracia", "Vinnytsya", "Volyn", "Zakarpattya", "Zaporizhzhya", "Zhytomyr"); var pais_51 = new Array("", "411", "416", "410", "413", "417", "414", "412", "418", "415"); var paisstnames_51 = new Array("", "Alta Austria", "Baja Austria", "Burgenland", "Carintia", "Estiria", "Salzburgo", "Tirol", "Viena", "Vorarlberg"); var pais_52 = new Array("", "419", "427", "420", "421", "422", "423", "424", "425", "426", "428", "429", "431", "432", "430", "433", "434"); var paisstnames_52 = new Array("", "Baden-Wurtemberg", "Baja Sajonia", "Baviera", "Berlín", "Brandeburgo", "Bremen", "Hamburgo", "Hesse", "Mecklemburgo-Pomerania Occidental", "Renania del Norte-Westfalia", "Renania-Palatinado", "Sajonia", "Sajonia-Anhalt", "Sarre", "Schleswig-Holstein", "Turingia"); var pais_1 = new Array("", "353", "354", "355", "356", "357", "358", "359", "361", "362", "363", "364", "365", "366", "367", "368", "370", "371", "372", "373", "374", "375", "376", "360", "377", "369", "389", "387", "378", "379", "380", "381", "382", "383", "384", "385", "386", "388", "390", "391", "392", "393", "394", "395", "396", "397", "398", "399", "400", "401", "402"); var paisstnames_1 = new Array("", "Álava", "Albacete", "Alicante", "Almería", "Asturias", "Ávila", "Badajoz", "Barcelona", "Burgos", "Cáceres", "Cádiz", "Cantabria", "Castellón", "Ciudad Real", "Córdoba", "Cuenca", "Gerona", "Granada", "Guadalajara", "Guipúzcoa", "Huelva", "Huesca", "Islas Baleares", "Jaén", "La Coruña", "La Rioja", "Las Palmas", "León", "Lérida", "Lugo ", "Madrid", "Málaga", "Murcia", "Navarra", "Orense", "Palencia", "Pontevedra", "Salamanca", "Santa Cruz de Tenerife", "Segovia", "Sevilla", "Soria", "Tarragona", "Teruel", "Toledo", "Valencia", "Valladolid", "Vizcaya", "Zamora", "Zaragoza"); var pais_2 = new Array("", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31", "32", "33", "34", "35", "36", "37", "42", "38", "39", "40", "41"); var paisstnames_2 = new Array("", "Aveiro", "Azores", "Baixo Alentejo", "Beira Alta", "Beja", "Braga", "Bragança", "Castelo Branco", "Coimbra", "Douro", "Estremadura", "Faro (Algarve)", "Guarda", "Leira", "Lisboa", "Madeira", "Oeiras", "Portalegre", "Porto", "resto", "Santarem", "Setubal", "VilaReal", "Viseu"); var pais_3 = new Array("", "73", "52", "54", "46", "47", "55", "58", "71", "56", "68", "44", "60", "51", "57", "65", "66", "67", "43", "45", "63", "69", "48", "50", "70", "74", "59", "53", "49", "62", "61", "72", "64"); var paisstnames_3 = new Array("", "Amazona", "Antioquia", "Arauca", "Atlántico", "Bolivar", "Boyaca", "Caldas", "Caqueta", "Casanare", "Cauca", "Cesar", "Choco", "Cordoba", "Cundinamarca", "Guania", "Guaviare", "Huila", "La Guajira", "Magdalena", "Meta", "Nariño", "Norte de Santander", "Providencia y S. Andres", "Putumayo", "resto", "Risaralda", "Santander", "Sucre", "Tolima", "Valle del Cauca", "Vaupes", "Vichada"); var pais_4 = new Array("", "76", "75", "77", "78", "79", "80", "81", "82", "83", "84", "85", "86", "87", "88", "89", "90", "100", "91", "92", "93", "94", "95", "96", "97", "98", "99"); var paisstnames_4 = new Array("", "Buenos Aires", "Capital Federal", "Catamarca", "Chaco", "Chubut", "Cordoba", "Corrientes", "Entre Rios", "Formosa", "Jujuy", "La Pampa", "La Rioja", "Mendoza", "Misiones", "Neuquen", "Patagonia", "resto", "Rio Negro", "Salta", "San Juan", "San Luis", "Santa Cruz", "Santa Fe", "Santiago del Estero", "Tierra del Fuego", "Tucumán"); var pais_5 = new Array("", "111", "112", "113", "114", "115", "116", "117", "118", "119", "120", "121", "122", "123", "125", "124", "126", "127", "137", "128", "129", "130", "131", "132", "133", "135", "134", "136"); var paisstnames_5 = new Array("", "Acre", "Alagoas", "Amapá", "Amazonas", "Bahia", "Ceará", "Distrito Federal", "Espirito Santo", "Goias", "Maranhão", "Mato Grosso", "Mato Grosso do Sul", "Minas Gerais", "Pará", "Paraíba", "Pernambuco", "Piaui", "resto", "Rio de Janeiro", "Rio Grande do Norte", "Rio Grande do Sul", "Rondonia", "Roraima", "Santa Catarina", "São Paulo", "Sergipe", "Tocantins"); var pais_6 = new Array("", "138", "139", "140", "141", "142", "144", "143", "145", "146", "147", "151", "148", "149", "150"); var paisstnames_6 = new Array("", "Antofagasta", "Asién G. C. Ibáñez", "Atacama", "Biobio", "Coquimbo", "L. G. Bernardo O'Higgins", "La Araucania", "Los Lagos", "Magallanes y la A.", "Maule", "resto", "Santiago", "Tarapacá", "Valparaiso/Rapa Nui"); var pais_7 = new Array("", "108", "101", "103", "102", "104", "109", "105", "110", "107", "106"); var paisstnames_7 = new Array("", "Beni", "Chuquisaca", "Cochabamba", "La Paz", "Oruro", "Pando", "Potosí", "resto", "Santa Cruz", "Tarija"); var pais_8 = new Array("", "152", "153", "154", "156", "155"); var paisstnames_8 = new Array("", "Ciudad de la Habana", "La Habana", "Matanzas", "resto", "Santiago de Cuba"); var pais_9 = new Array("", "158", "157"); var paisstnames_9 = new Array("", "resto", "Santo Domingo"); var pais_10 = new Array("", "159", "160", "161", "162", "163", "164", "165", "166", "167", "168", "170", "169"); var paisstnames_10 = new Array("", "Azuay", "Chimborazo", "Esmeraldas", "Galapagos", "Guayas", "Imbabura", "Loja", "Manabi", "Napo", "Pichincha", "resto", "Tungurahua"); var pais_11 = new Array("", "171", "172", "173", "174", "176", "175"); var paisstnames_11 = new Array("", "Antigua Guatemala", "Guatemala", "Huehuetenango", "Jalapa", "Resto", "Sololá"); var pais_12 = new Array("", "185", "178", "179", "180", "181", "182", "183", "184", "177", "186", "187", "188", "189", "190", "191", "192", "193", "194", "195", "196", "197", "198", "199", "209", "200", "201", "202", "203", "204", "205", "206", "207", "208"); var paisstnames_12 = new Array("", "Aguascalientes", "Baja California", "Baja California Sur", "Campeche", "Chiapas", "Chihuahua", "Coahuila", "Colima", "Distrito Federal", "Durango", "Guanajuato", "Guerrero", "Hidalgo", "Jalisco", "Mexico", "Michoacan de Ocampo", "Morelos", "Nayarit", "Nuevo Leon", "Oaxaca", "Puebla", "Querétaro", "Quintana Roo", "resto", "San Luis Potosí", "Sinaloa", "Sonora", "Tabasco", "Tamaulipas", "Tlaxcala", "Veracruz-Llave", "Yucatan", "Zacatecas"); var pais_13 = new Array("", "212", "213", "214", "215", "216", "217", "218", "211", "219", "220", "210", "221", "230", "222", "223", "224", "225", "226", "227", "228", "229"); var paisstnames_13 = new Array("", "Artigas", "Canelones", "Cerro Largo", "Colonia", "Durazno", "Flores", "Florida", "Interior", "Lavalleja", "Maldonado", "Montevideo", "Paysandú", "resto", "Río Negro", "Rivera", "Rocha", "Salto", "San José", "Soriano", "Tacuarembó", "Treinta y Tres"); var pais_14 = new Array("", "231", "234", "232", "233", "235"); var paisstnames_14 = new Array("", "Boquete", "Ciudad de Panamá", "Colon", "Paitilla", "resto"); var pais_15 = new Array("", "236", "237", "238", "239", "240", "241"); var paisstnames_15 = new Array("", "Estelí", "Granada", "Jinotepe", "León", "Managua", "resto"); var pais_16 = new Array("", "242", "243", "247", "244", "245", "246"); var paisstnames_16 = new Array("", "El Progreso", "La Ceiba", "resto", "San Pedro Sula", "Tegucigalpa", "Tela"); var pais_17 = new Array("", "248", "251", "249", "250"); var paisstnames_17 = new Array("", "Colonia Escalón", "resto", "San Salvador", "Soyapango"); var pais_18 = new Array("", "252", "253"); var paisstnames_18 = new Array("", "Asunción", "resto"); var pais_19 = new Array("", "261", "258", "255", "257", "260", "259", "254", "262", "256"); var paisstnames_19 = new Array("", "Arequipa", "Callao", "Chiclayo", "Chimbote", "Cuzco", "Lima", "Piura", "resto", "Trujillo"); var pais_20 = new Array("", "265", "266", "264", "267", "268", "263"); var paisstnames_20 = new Array("", "Bayamon", "Caguas", "Carolina", "Mayagüez", "resto", "San Juan"); var pais_21 = new Array("", "269", "270", "271", "272", "273", "274", "275", "276", "277", "278", "297", "279", "280", "281", "282", "283", "298", "284", "285", "286", "287", "288", "289", "299", "290", "291", "292", "293", "294", "295", "296", "301", "302", "303", "304", "305", "306", "351", "307", "308", "309", "310", "311", "312", "313", "314", "315", "316", "317", "318", "319", "300"); var paisstnames_21 = new Array("", "Alabama", "Alaska", "Arizona", "Arkansas", "California", "Colorado", "Connecticut", "Delaware", "Florida", "Georgia", "Hampshire", "Hawaii", "Idaho", "Illinois", "Indiana", "Iowa", "Jersey", "Kansas", "Kentucky", "Louisiana", "Maine", "Maryland", "Massachussetts", "Mexico", "Michigan", "Minnesota", "Mississippi", "Missouri", "Montana", "Nebraska", "Nevada", "North Carolina", "North Dakota", "Ohio", "Oklahoma", "Oregon", "Pennsylvania", "resto", "Rhode Island", "South Carolina", "South Dakota", "Tennessee", "Texas", "Utah", "Vermont", "Virginia", "Washington", "Washington D.C.", "West Virginia", "Wisconsin", "Wyoming", "York"); var pais_22 = new Array("", "321", "322", "323", "324", "325", "326", "327", "328", "329", "320", "330", "331", "332", "333", "334", "335", "336", "337", "352", "338", "339", "340", "341", "342"); var paisstnames_22 = new Array("", "Amazonas", "Anzoategui", "Apure", "Arague", "Barinas", "Bolivar", "Carabobo", "Cojedes", "Delta Amacuro", "Distrito Federal", "Falcon", "Guarico", "Lara", "Merida", "Miranda", "Monagas", "Nueva Esparta", "Portuguesa", "resto", "Sucre", "Tachira", "Trujillo", "Yaracuy", "Zulia"); var pais_23 = new Array("", "344", "345", "346", "347", "348", "349", "350", "343"); var paisstnames_23 = new Array("", "Alajuela", "Cartago", "Guanacaste", "Heredia", "Limon", "Puntarenas", "resto", "San Jose"); var pais_24 = new Array("", "408", "404", "405", "406", "407", "403", "409"); var paisstnames_24 = new Array("", "Andorra la Vella", "Canillo", "Encamp", "Escaldes-Engordany", "La Massana", "Ordina", "Sant Julià de Lòria"); var pais_25 = new Array("", "437", "435", "436"); var paisstnames_25 = new Array("", "Bruselas-Capital", "Flandes", "Valonia"); var pais_26 = new Array("", "438", "439", "440", "441", "442", "443", "444", "445", "446", "447", "448", "449", "450", "451", "452", "453", "454", "455", "456", "457", "458", "459", "460", "461", "462", "463", "464", "465"); var paisstnames_26 = new Array("", "Blagoevgrad", "Burgas", "Dobrich", "Gabrovo", "Haskovo", "Kardzhali", "Kyustendil", "Lovech", "Montana", "Pazardzhik", "Pernik", "Pleven", "Plovdiv", "Razgrad", "Ruse", "Shumen", "Silistra", "Sliven", "Smolyan", "Sofia", "Sofia Region", "Stara Zagora", "Targovishte", "Varna", "Veliko Tarnovo", "Vidin", "Vratsa", "Yambol"); var pais_27 = new Array("", "466"); var paisstnames_27 = new Array("", "Croacia"); var pais_28 = new Array("", "481", "482", "467", "469", "474", "468", "470", "475", "480", "476", "478", "471", "472", "473", "477", "479"); var paisstnames_28 = new Array("", "Aarhus (distrito)", "Bornholm", "Copenhague", "Copenhague", "Fionia", "Frederiksberg", "Frederiksborg", "Jutlandia Meridional", "Jutlandia Septentrional", "Ribe", "Ringkjobing", "Roskilde", "Selandia Occidental", "Storstrom", "Vejle", "Viborg"); var pais_29 = new Array("", "489", "483", "490", "486", "488", "485", "484", "487"); var paisstnames_29 = new Array("", "Banská Bystrica", "Bratislava", "Kosice", "Nitra", "Presov", "Trencín", "Trnava", "Zilina"); var pais_30 = new Array("", "497", "499", "501", "493", "500", "502", "498", "492", "491", "494", "496", "495"); var paisstnames_30 = new Array("", "Dolenjska", "Gorenjska", "Goriska", "Koroska", "Notranjsko-kraska", "Obalno-kraska", "Ostredjeslovenska", "Podravska", "Pomurska", "Savinjska", "Spodnjeposavska", "Zasavska"); var pais_31 = new Array("", "503", "504", "505", "506", "507", "508", "509", "510", "511", "512", "513", "514", "515", "516", "517"); var paisstnames_31 = new Array("", "Harju", "Hiiu", "Ida-Viru", "Jarva", "Jogeva", "Laane", "Laane-Viru", "Parnu", "Polva", "Rapla", "Saare", "Tartu", "Valga", "Viljandi", "Voru"); var pais_32 = new Array("", "523", "518", "519", "520", "522", "521"); var paisstnames_32 = new Array("", "Aland", "Finlandia Meridional", "Finlandia Occidental", "Finlandia Oriental", "Laponia", "Oulu"); var pais_33 = new Array("", "526", "528", "529", "527", "524", "525", "530"); var paisstnames_33 = new Array("", "Alta Normandía", "Baja Normandía", "Borgoña", "Centro", "Champaña-Ardenas", "Picardía", "Resto"); var pais_34 = new Array("", "531", "534", "540", "538", "536", "532", "542", "537", "533", "543", "535", "539", "541"); var paisstnames_34 = new Array("", "Ática", "Creta", "Egeo meridional", "Egeo septentrional", "Epiro", "Grecia central", "Grecia occidental", "Islas Jónicas", "Macedonia central", "Macedonia occidental", "Macedonia oriental y Tracia", "Peloponeso", "Tesalia"); var pais_35 = new Array("", "548", "551", "550", "549", "555", "554", "552", "556", "546", "547", "544", "553", "545"); var paisstnames_35 = new Array("", "Baraya", "Békés", "Csongrád", "Fejér", "Heves", "Nógrad", "Pest", "Resto", "Somogy", "Tolna", "Vas", "Veszprém", "Zala"); var pais_36 = new Array("", "557", "558", "559", "560", "561", "562", "563", "564", "565", "566", "567", "568", "569", "570", "571", "572", "573", "574", "575", "576", "577", "578", "579", "580", "581", "582"); var paisstnames_36 = new Array("", "Carlow", "Cavan", "Clare", "Cork", "Donegal", "Dublín", "Galway", "Kerry", "Kildare", "Kilkenny", "Laois", "Leitrim", "Limerick", "Longford", "Louth", "Mayo", "Meath", "Monaghan", "Offaly", "Roscommon", "Sligo", "Tipperary", "Waterford", "Westmeath", "Wexford", "Wicklow"); var pais_37 = new Array("", "595", "600", "596", "597", "598", "601", "587", "588", "592", "591", "583", "584", "599", "585", "602", "593", "589", "594", "586", "590"); var paisstnames_37 = new Array("", "Abruzzo, L'Aquila", "Apulia, Bari", "Basilicata, Potenza", "Calabria, Catanzaro", "Campania, Nápoles", "Cerdeña, Cagliari", "Emilia-Romaña, Bolonia", "Friuli-Venecia Julia, Trieste", "Las Marcas, Ancona", "Lazio Roma", "Liguria,Génova", "Lombardía,Milán", "Molise, Campobasso", "Piamonte, Turín", "Sicilia, Palermo", "Toscana, Florencia", "Trentino - Alto Adigio, Trento", "Umbría, Perugia", "Valle de Aosta, Aosta", "Véneto, Venecia"); var pais_38 = new Array("", "603", "604", "605"); var paisstnames_38 = new Array("", "Dikrech", "Gréiwemaacher", "Letzebuerg"); var pais_39 = new Array("", "606"); var paisstnames_39 = new Array("", "Mónaco"); var pais_40 = new Array("", "607", "608", "609", "610", "611", "612", "613", "615", "614", "616", "617", "618", "619", "620", "621", "622", "623", "624", "625"); var paisstnames_40 = new Array("", "Akershus", "Aust-Agder", "Buskerud", "Finnmark", "Hedmark", "Hordaland", "More og Romsdal", "Nord-Trondelag", "Nordland", "Oppland", "Oslo (capital)", "Ostfold", "Rogaland", "Sogn og Fjordane", "Sor-Trondelag", "Telemark", "Troms", "Vest-Agder", "Vestfold"); var pais_41 = new Array("", "636", "628", "632", "627", "626", "630", "634", "633", "637", "629", "631", "635"); var paisstnames_41 = new Array("", "Brabante Septentrional", "Drente", "Flevolanda", "Frisia", "Groninga", "Güeldres", "Holanda Meridional", "Holanda Septentrional", "Limburgo", "Overijssel", "Utrecht", "Zelanda"); var pais_42 = new Array("", "638", "639", "652", "641", "643", "640", "644", "645", "642", "647", "648", "653", "650", "649", "646", "651"); var paisstnames_42 = new Array("", "Baja Silesia", "Cuyavia y Pomerania", "Gran Polonia", "Lebus", "Lódz", "Lublin", "Mazovia", "Opole", "Pequeña Polonia", "Podlaquia", "Pomerania", "Pomerania Occidental", "Santa Cruz", "Silesia", "Subcarpacia", "Varmia y Masuria"); var pais_43 = new Array("", "745", "720", "721", "722", "654", "723", "724", "725", "655", "726", "656", "746", "709", "657", "658", "727", "728", "710", "659", "660", "702", "729", "730", "661", "666", "731", "662", "663", "664", "665", "732", "743", "711", "733", "703", "667", "734", "712", "752", "706", "708", "668", "713", "697", "698", "753", "704", "705", "669", "670", "671", "714", "672", "749", "673", "747", "748", "750", "751", "754", "674", "675", "735", "676", "736", "677", "737", "738", "715", "739", "699", "700", "755", "740", "741", "742", "678", "679", "680", "681", "744", "716", "682", "707", "756", "717", "683", "684", "757", "685", "718", "686", "687", "689", "688", "719", "758", "690", "691", "701", "692", "693", "694", "695", "696"); var paisstnames_43 = new Array("", "Anguila", "Antrim", "Ards", "Armagh", "Avon", "Ballymena", "Ballymoney", "Banbridge", "Bedfordshire", "Belfast", "Berkshire", "Bermuda", "Borders", "Buckinghamshire", "Cambridgeshire", "Carrickfergus", "Castlereagh", "Central", "Cheshire", "Cleveland", "Clwyd", "Coleraine", "Cookstown", "Cornualles", "County Durham", "Craigavon", "Cumbria", "Derbyshire", "Devon", "Dorset", "Down", "Down del Norte", "Dumfries y Galloway", "Dungannon", "Dyfed", "Essex", "Fermanagh", "Fife", "Gibraltar", "Glamorgan Central", "Glamorgan del Sur y Glamorgan Occidental", "Gloucestershire", "Grampian", "Gran Londres", "Gran Manchester", "Guernsey", "Gwent", "Gwynedd", "Hampshire", "Herefordshire", "Hertfordshire", "Highland", "Humberside", "Isla de Man", "Isla de Wight", "Islas Caimán", "Islas Malvinas", "Islas Pitcairn", "Islas Vírgenes Británicas", "Jersey", "Kent", "Lancashire", "Larne", "Leicestershire", "Limavady", "Lincolnshire", "Lisburn", "Londonderry", "Lothian", "Magherafelt", "Merseyside", "Midlands Occidental", "Montserrat", "Moyle", "Newry y Mourne", "Newtownabbey", "Norfolk", "Northamptonshire", "Northumberland", "Nottinghamshire", "Omagh y Strabane", "Orcadas", "Oxfordshire", "Powys", "Santa Elena", "Shetland", "Shropshire", "Somerset", "South Georgia e Islas Sandwich del Sur", "Staffordshire", "Strathclyde", "Suffolk", "Surrey", "Sussex Occidental", "Sussex Oriental", "Tayside e Islas Occidentales", "Territorio Británico del Océano Índico y Turks y Caicos", "Tyne", "Warwickshire", "Wear", "Wiltshire", "Worcestershire", "Yorkshire del Norte", "Yorkshire del Sur", "Yorkshire Occidental"); var pais_44 = new Array("", "769", "760", "763", "762", "764", "761", "765", "766", "767", "768", "759", "770", "771", "772"); var paisstnames_44 = new Array("", "Bohemia Central", "Bohemia Meridional", "Hradec Králové", "Karlovy Vary", "Liberec", "Moravia Meridional", "Moravia-Silesia", "Olomouc", "Pardubice", "Plzen", "Praga", "Ústí nad Labem", "Vysocina", "Zlín"); var pais_45 = new Array("", "773", "774", "775", "776", "777", "778", "779", "781", "780", "782", "784", "783", "785", "786", "787", "788", "789", "790", "791", "792", "793", "794", "795", "796", "797", "798", "799", "800", "801", "802", "803", "805", "804", "806", "807", "808", "809", "810", "812", "811", "813"); var paisstnames_45 = new Array("", "Alba", "Arad", "Arges", "Bacau", "Bihor", "Bistrita-Nasaud", "Botosani", "Braila", "Brasov", "Buzau", "Calarasi", "Caras-Severin", "Cluj", "Constanta", "Covasna", "Dambovita", "Dolj", "Galati", "Giurgiu", "Gorj", "Harghita", "Hunedoara", "Ialomita", "Iasi", "Ilfov", "Maramures", "Mehedinti", "Mures", "Neamt", "Olt", "Prahova", "Salaj", "Satu Mare", "Sibiu", "Suceava", "Teleorman", "Timis", "Tulcea", "Valcea", "Vaslui", "Vrancea"); var pais_46 = new Array("", "814", "819", "818", "817", "820", "816", "815"); var paisstnames_46 = new Array("", "Distrito Federal Central", "Distrito Federal de los Urales", "Distrito Federal de Siberia", "Distrito Federal del Lejano Oriente", "Distrito Federal del Volga", "Distrito Federal Noroeste", "Distrito Federal Sur"); var pais_47 = new Array("", "821", "822", "824", "823", "825", "826", "827", "828", "829", "830", "840", "841", "831", "833", "832", "834", "835", "836", "837", "838", "839"); var paisstnames_47 = new Array("", "Blekinge", "Dalarna (Dalecarlia)", "Gavleborg", "Gotland", "Halland", "Jamtland", "Jonkoping", "Kalmar", "Kronoberg", "Norrbotten", "orebro", "ostergotland", "Skane (Escania)", "Sodermanland", "Stockholm (Estocolmo)", "Uppsala", "Varmland", "Vasterbotten", "Vasternorrland", "Vastmanland", "Vastra Gotaland"); var pais_48 = new Array("", "842", "843", "844", "846", "845", "847", "848", "849", "850", "851", "852", "853", "854", "856", "855", "860", "857", "858", "859", "862", "861", "863", "864", "865", "866", "867"); var paisstnames_48 = new Array("", "Appenzell Rodas Exteriores", "Appenzell Rodas Interiores", "Argovia", "Basilea-Campaña", "Basilea-Ciudad", "Berna", "Friburgo", "Ginebra", "Glaris", "Grisones", "Jura", "Lucerna", "Neuchatel", "Nidwalden", "Obwalden", "Sankt Gallen", "Schaffhausen", "Schwyz", "Soleura", "Tesino", "Turgovia", "Uri", "Valais", "Vaud", "Zug", "Zúrich"); var pais_49 = new Array("", "873", "872", "874", "875", "876", "877", "869", "871", "892", "878", "879", "880", "881", "882", "883", "886", "885", "884", "888", "887", "870", "889", "890", "891", "893", "894", "895", "896", "868", "897", "898", "899", "900", "901"); var paisstnames_49 = new Array("", "Anatolia Central", "Anatolia Occidental", "Anatolia Suroriental y Anatolia Oriental", "Cherkasy", "Chernihiv", "Chernivtsi", "Costa del Mar Negro", "Costa del Mediterráneo", "Crimea", "Dnipropetrovs'k", "Donets'k", "Ivano-Frankivs'k", "Kharkiv", "Kherson", "Khmel'nyts'kyy", "Kiev (región)", "Kiev *", "Kirovohrad", "L'viv", "Luhans'k", "Mar de Mármara y Costa del Egeo", "Mykolayiv", "Odessa", "Poltava", "Rivne", "Sevastopol *", "Sumy", "Ternopil'", "Tracia", "Vinnytsya", "Volyn", "Zakarpattya", "Zaporizhzhya", "Zhytomyr"); var pais_51 = new Array("", "411", "416", "410", "413", "417", "414", "412", "418", "415"); var paisstnames_51 = new Array("", "Alta Austria", "Baja Austria", "Burgenland", "Carintia", "Estiria", "Salzburgo", "Tirol", "Viena", "Vorarlberg"); var pais_52 = new Array("", "419", "427", "420", "421", "422", "423", "424", "425", "426", "428", "429", "431", "432", "430", "433", "434"); var paisstnames_52 = new Array("", "Baden-Wurtemberg", "Baja Sajonia", "Baviera", "Berlín", "Brandeburgo", "Bremen", "Hamburgo", "Hesse", "Mecklemburgo-Pomerania Occidental", "Renania del Norte-Westfalia", "Renania-Palatinado", "Sajonia", "Sajonia-Anhalt", "Sarre", "Schleswig-Holstein", "Turingia"); seleccion=eval("pais_"+p); seleccionNames=eval("paisstnames_"+p); cuantos_add=seleccion.length; if (typeof select_provincia!= "undefined"){ select_provincia.length=cuantos_add; for(i=0;i