
function verifyEqualPass(form){
		var temp = form.passwd.value;
		var temp2 = form.repassword.value;	
		if ((temp != temp2) || (temp == "") || (temp2 == "")){ 
			alert("Las contrasenas deben ser iguales.");
			form.repassword.focus();
			return false;
		}else return true;
}

function verifyCaptcha(form){
		var temp = form.math.value;
		var temp2 = form.remath.value;	
		if ((temp != temp2) || (temp == "") || (temp2 == "")){ 
			alert("Debes ingresar la clave de seguridad correcta!");
			form.math.focus();
			return false;
		}else return true;
}

function verifyCatProv(form){
		$('#Categoria option').each(function(i) {  
			$(this).attr("selected", "selected");  
		});
		
		$('#iProvincia option').each(function(i) {  
			$(this).attr("selected", "selected");  
		});
		
		if (form.suscription[0].checked) {
			if (window.countc == 0 ){
				window.alert("Si desea recibir ofertas, debe seleccionar al menos una categoria" ) ;
				return false;
			} 
			if (window.countp == 0 ){
				window.alert("Si desea recibir ofertas, debe seleccionar al menos una provincia" ) ;
				return false;
			} 
			return true;
		}else{
			return true;	
		}
		
}


function popUp(URL, width, height, scrollbars){
	if(scrollbars == undefined)
		scrollbars = '1';
	window.open(URL, '', 'toolbar=0,location=0,directories=0,status=0,menubar=0,resizable=0,scrollbars=' + scrollbars + ',width=' + width + ',height=' + height);
	return false;
}


function checkLogin(form){

		//validar email 
		var temp2 = form.email.value;		
		if ((temp2 == "") || (temp2.length > 0 && (temp2.indexOf("@",0) == - 1 || temp2.indexOf(".",0) == - 1))) { 
			alert("Debes introducir una direccion de email valida.");
			form.email.focus();
			return false;
		}
		
		//validar password
		var temp2 = form.passwd.value;	
		if (temp2 == "" || !temp2) { 
			alert("Debes introducir tu password.");
			form.passwd.focus();
			return false;
		}	
		return true;
}



//------------------------------------------------------------------------

function validar() {
					var form = document.myForm;
					resetAlertaError();
					
					var error = false;
					
						if (!mail_infojobs(form.sEmail)) {
							error = true;
						}
					

					error |= !longitud(form.sNombre,"Nombre",1,50);

					error |= !longitud(form.sApellido1,"Primer Apellido",1,50);
					
					error |= !longitud(form.sApellido2,"Segundo Apellido",1,50);
									
					var errorDataNaix=false;
					if (!isDate(form.Naix_Dies.value, form.Naix_Mes.value, form.Naix_Any.value)){
						document.getElementById("divFechaNacimiento").className = "InputErrorSubcategorias"; 
						document.getElementById("label_fechaNacimiento").className = "EtiquetaFormError";
						addErrorMessage(null, "Has seleccionado una fecha de nacimiento errónea.");
						error=true;
						errorDataNaix=true;
					}else{
						document.getElementById("divFechaNacimiento").className = ""; 
						document.getElementById("label_fechaNacimiento").className = "";
					}
		
					if (!errorDataNaix) {
						var dDataNaix = new Date();
						dDataNaix.setDate(form.Naix_Dies.value);
						// Javascript: months start at 0
						iNaixMes = form.Naix_Mes.value;
						dDataNaix.setMonth(iNaixMes--);
						dDataNaix.setFullYear(form.Naix_Any.value);
						var dDataAra = new Date();
						var iAnys = dDataAra.getFullYear()-dDataNaix.getFullYear();
						
						if (iAnys < 16 || 80 < iAnys) {
							document.getElementById("divFechaNacimiento").className = "InputErrorSubcategorias";
							document.getElementById("label_fechaNacimiento").className = "EtiquetaFormError";
							addErrorMessage(null, "Has seleccionado una fecha de nacimiento errónea.");
							error = true;
						}else{
							document.getElementById("divFechaNacimiento").className = ""; 
							document.getElementById("label_fechaNacimiento").className = "";
						}
					}

					var mailLengthError=!longitud(form.sEmail,"E-mail",1,50);
					if(mailLengthError) {
						error=true;
					} else {
						// el formato del email solamente se comprueba en caso que la longitud estaba
						// en el rango permitido. Porque si no pueden producirse dos mensajes de error:
						// el campo email es obligatorio + el formato del email está mal
						error |= !mail(form.sEmail);
					}

					error |= !longitud(form.sPassword, "Contraseña",4, 20);
					error |= !longitud(form.c_password_conf, "Repetir contraseña",4, 20);
					error |= !campos_iguales(form.sPassword,"Contraseña",form.c_password_conf,"Repetir contraseña");
					
					if (form.sPassword.value.length>0 && form.sPassword.value.replace( /^\s+/g, "").replace( /\s+$/g, "").length == 0) {
						addErrorMessage(form.sPassword,"La contraseña no puede tener sólo espacios.");
						error = true;
					}
		
					
						trim(form.iTlfMovil);
						if (form.iTlfMovil.value.length>0){
							error |= !longitud(form.iTlfMovil, "Teléfono móvil",9,9);
							error |= !esnumero(form.iTlfMovil, "Teléfono móvil");
							var iTlfMovil=form.iTlfMovil.value;
							var nPrimerNumero_iTlfMovil = iTlfMovil.substring(0,1);
							if (nPrimerNumero_iTlfMovil!=6){
								addErrorMessage(form.iTlfMovil,"El móvil debe comenzar por ''6''.");
								error = true;
							}
						}
					
					
					
						
							//Como el iComo es aleatorio hacemos la comprobacion aqui, el valor 0 corresponde a Selecionar
							if(form.iComo.options[form.iComo.selectedIndex].value==0){
								error |= true;
								addGlobalErrorMessage(form.iComo, "FALTA_SPEC_EN_CAMPO", "¿Cómo has llegado a Hosteleo.com?");
							}
							//error |= !pulldownRandom(form.iComo,"¿Cómo has llegado a Hosteleo.com?");
							error |=  document.getElementById("DivEspec").style.display == "" && 
									 !longitud(form.sEspec,"Especifica",1,50);
						
					

					document.getElementById("div_subcategoria").className = "none"; 
					if(form.bQuiereAlertas[0].checked==true) {
						error |= !pulldown(form.sAlertaProvincia,"Provincia");	
						error |= !pulldown(form.sAlertaCategoria,"Categoría");

						SelectAllItemsList(form.sAlertaSubcategoriaSeleccionada)
						
						if (CountDistincPrefixList(form.sAlertaSubcategoriaSeleccionada,"")==0){
							document.getElementById("div_subcategoria").className = "InputErrorSubcategorias"; 
							addErrorMessage(null,"Debes seleccionar una opción en ''Subcategoría''.");
							error =true;
						}
						
						if(CountDistincPrefixList(form.sAlertaSubcategoriaSeleccionada,':') > 5) {
							document.getElementById("div_subcategoria").className = "InputErrorSubcategorias"; 
							addErrorMessage(null,"Sólo puedes seleccionar subcategorías de un máximo de 5 categorías.");
							error=true;
						}

					}
					
					if(form.iPrivacidad.checked==false) {
						addErrorMessage(form.iPrivacidad,"Debes leer y aceptar las condiciones.");
						error=true;
					}
					
					error |= !longitud(form.sCaptcha,"Introduce el texto de la imagen",1,50);
					
					if(error) {
						
						document.getElementById("mensaje").style.display = "none";
						
						return;
					}
					
					
						form.sTextPrivacidad.value = "";
					
					
					form.submit();
				}
	
				
				function changeVisibility(displayStyle) {
					divElem = document.getElementById('DIVFormAlertas');
					divElem.style.display  = displayStyle;
					if(displayStyle == '') {
						document.myForm.bAlertaIgnore.value="false";
					} else {
						document.myForm.bAlertaIgnore.value="true";
					}
				}

				
				function relacioCategoria(parentInput,childInput) {
					CleanItemsList(childInput);  
					var FatherSelected=parentInput[parentInput.selectedIndex].value;
	
							
							if (FatherSelected == "40") childInput[childInput.length]=new Option("Almacén",3026);
						
					 
						
						
							
							if (FatherSelected == "10") childInput[childInput.length]=new Option("Administración",3000);
						
					 
						
						
							
							if (FatherSelected == "20") childInput[childInput.length]=new Option("Administración autonómica",3011);
						
					 
						
						
							
							if (FatherSelected == "30") childInput[childInput.length]=new Option("Certificación de calidad",3017);
						
					 
						
						
							
							if (FatherSelected == "40") childInput[childInput.length]=new Option("Compras y aprovisionamiento",3024);
						
					 
						
						
							
							if (FatherSelected == "50") childInput[childInput.length]=new Option("Creación audiovisual",3027);
						
					 
						
						
							
							if (FatherSelected == "60") childInput[childInput.length]=new Option("Educación especial",3033);
						
					 
						
						
							
							if (FatherSelected == "70") childInput[childInput.length]=new Option("Banca empresarial",3039);
						
					 
						
						
							
							if (FatherSelected == "80") childInput[childInput.length]=new Option("Aeronáutico",3044);
						
					 
						
						
							
							if (FatherSelected == "90") childInput[childInput.length]=new Option("Administración inmobiliaria",3056);
						
					 
						
						
							
							if (FatherSelected == "100") childInput[childInput.length]=new Option("Derecho civil, penal y constitucional",3063);
						
					 
						
						
							
							if (FatherSelected == "110") childInput[childInput.length]=new Option("Comunicación corporativa",3068);
						
					 
						
						
							
							if (FatherSelected == "120") childInput[childInput.length]=new Option("Agricultura y jardinería",3077);
						
					 
						
						
							
							if (FatherSelected == "130") childInput[childInput.length]=new Option("Formación",3094);
						
					 
						
						
							
							if (FatherSelected == "140") childInput[childInput.length]=new Option("Enfermería",3098);
						
					 
						
						
							
							if (FatherSelected == "150") childInput[childInput.length]=new Option("Administración de bases de datos",3105);
						
					 
						
						
							
							if (FatherSelected == "160") childInput[childInput.length]=new Option("Hostelería",3115);
						
					 
						
						
							
							if (FatherSelected == "170") childInput[childInput.length]=new Option("Atención al cliente",3118);
						
					 
						
						
							
							if (FatherSelected == "190") childInput[childInput.length]=new Option("Comercial",3119);
						
					 
						
						
							
							if (FatherSelected == "180") childInput[childInput.length]=new Option("Sin especificar",3123);
						
					 
						
						
							
							if (FatherSelected == "10") childInput[childInput.length]=new Option("Auditoría",3001);
						
					 
						
						
							
							if (FatherSelected == "20") childInput[childInput.length]=new Option("Administración del Estado",3012);
						
					 
						
						
							
							if (FatherSelected == "30") childInput[childInput.length]=new Option("Gestión de la calidad",3018);
						
					 
						
						
							
							if (FatherSelected == "40") childInput[childInput.length]=new Option("Distribución y logística",3025);
						
					 
						
						
							
							if (FatherSelected == "50") childInput[childInput.length]=new Option("Diseño gráfico",3028);
						
					 
						
						
							
							if (FatherSelected == "60") childInput[childInput.length]=new Option("Educación social",3034);
						
					 
						
						
							
							if (FatherSelected == "70") childInput[childInput.length]=new Option("Banca privada",3040);
						
					 
						
						
							
							if (FatherSelected == "80") childInput[childInput.length]=new Option("Agrónomo y montes",3045);
						
					 
						
						
							
							if (FatherSelected == "90") childInput[childInput.length]=new Option("Arquitectura y proyección",3057);
						
					 
						
						
							
							if (FatherSelected == "100") childInput[childInput.length]=new Option("Derecho internacional",3064);
						
					 
						
						
							
							if (FatherSelected == "110") childInput[childInput.length]=new Option("Desarrollo de marca y producto",3069);
						
					 
						
						
							
							if (FatherSelected == "120") childInput[childInput.length]=new Option("Artes interpretativas",3078);
						
					 
						
						
							
							if (FatherSelected == "130") childInput[childInput.length]=new Option("Prevención de riesgos",3095);
						
					 
						
						
							
							if (FatherSelected == "140") childInput[childInput.length]=new Option("Farmacia",3099);
						
					 
						
						
							
							if (FatherSelected == "150") childInput[childInput.length]=new Option("Análisis",3106);
						
					 
						
						
							
							if (FatherSelected == "160") childInput[childInput.length]=new Option("Restauración",3116);
						
					 
						
						
							
							if (FatherSelected == "190") childInput[childInput.length]=new Option("Comercio exterior",3126);
						
					 
						
						
							
							if (FatherSelected == "10") childInput[childInput.length]=new Option("Consultoría",3002);
						
					 
						
						
							
							if (FatherSelected == "20") childInput[childInput.length]=new Option("Administración local",3013);
						
					 
						
						
							
							if (FatherSelected == "30") childInput[childInput.length]=new Option("Gestión de la producción",3019);
						
					 
						
						
							
							if (FatherSelected == "50") childInput[childInput.length]=new Option("Diseño industrial",3029);
						
					 
						
						
							
							if (FatherSelected == "60") childInput[childInput.length]=new Option("Enseñanza",3035);
						
					 
						
						
							
							if (FatherSelected == "70") childInput[childInput.length]=new Option("Bolsa, valores e inversión",3041);
						
					 
						
						
							
							if (FatherSelected == "80") childInput[childInput.length]=new Option("Electrónica",3046);
						
					 
						
						
							
							if (FatherSelected == "90") childInput[childInput.length]=new Option("Dirección y gestión de obras",3058);
						
					 
						
						
							
							if (FatherSelected == "100") childInput[childInput.length]=new Option("Derecho procesal",3065);
						
					 
						
						
							
							if (FatherSelected == "110") childInput[childInput.length]=new Option("Investigación de mercados",3070);
						
					 
						
						
							
							if (FatherSelected == "120") childInput[childInput.length]=new Option("Artes plásticas",3079);
						
					 
						
						
							
							if (FatherSelected == "130") childInput[childInput.length]=new Option("Relaciones laborales",3096);
						
					 
						
						
							
							if (FatherSelected == "140") childInput[childInput.length]=new Option("Medicina especializada",3100);
						
					 
						
						
							
							if (FatherSelected == "150") childInput[childInput.length]=new Option("Arquitectura",3107);
						
					 
						
						
							
							if (FatherSelected == "160") childInput[childInput.length]=new Option("Turismo",3117);
						
					 
						
						
							
							if (FatherSelected == "170") childInput[childInput.length]=new Option("Promoción y ferias",3120);
						
					 
						
						
							
							if (FatherSelected == "10") childInput[childInput.length]=new Option("Dirección y gerencia",3003);
						
					 
						
						
							
							if (FatherSelected == "20") childInput[childInput.length]=new Option("Administraciones europeas",3014);
						
					 
						
						
							
							if (FatherSelected == "30") childInput[childInput.length]=new Option("Gestión de proyectos",3020);
						
					 
						
						
							
							if (FatherSelected == "50") childInput[childInput.length]=new Option("Diseño web",3030);
						
					 
						
						
							
							if (FatherSelected == "60") childInput[childInput.length]=new Option("Gestión de centros educativos",3036);
						
					 
						
						
							
							if (FatherSelected == "70") childInput[childInput.length]=new Option("Productos y servicios bancarios",3042);
						
					 
						
						
							
							if (FatherSelected == "80") childInput[childInput.length]=new Option("Electrónica y automática industrial",3047);
						
					 
						
						
							
							if (FatherSelected == "90") childInput[childInput.length]=new Option("Ingeniería civil y obras públicas",3059);
						
					 
						
						
							
							if (FatherSelected == "100") childInput[childInput.length]=new Option("Derecho y empresa",3066);
						
					 
						
						
							
							if (FatherSelected == "110") childInput[childInput.length]=new Option("Marketing",3071);
						
					 
						
						
							
							if (FatherSelected == "120") childInput[childInput.length]=new Option("Artesanía",3080);
						
					 
						
						
							
							if (FatherSelected == "130") childInput[childInput.length]=new Option("Selección de personal",3097);
						
					 
						
						
							
							if (FatherSelected == "140") childInput[childInput.length]=new Option("Medicina general",3101);
						
					 
						
						
							
							if (FatherSelected == "150") childInput[childInput.length]=new Option("Calidad",3108);
						
					 
						
						
							
							if (FatherSelected == "190") childInput[childInput.length]=new Option("Gran cuenta",3127);
						
					 
						
						
							
							if (FatherSelected == "10") childInput[childInput.length]=new Option("Facturación, cobros y pagos",3004);
						
					 
						
						
							
							if (FatherSelected == "20") childInput[childInput.length]=new Option("Cuerpos de seguridad",3015);
						
					 
						
						
							
							if (FatherSelected == "30") childInput[childInput.length]=new Option("Investigación y desarrollo",3021);
						
					 
						
						
							
							if (FatherSelected == "50") childInput[childInput.length]=new Option("Editorial e imprenta",3031);
						
					 
						
						
							
							if (FatherSelected == "60") childInput[childInput.length]=new Option("Pedagogía",3037);
						
					 
						
						
							
							if (FatherSelected == "70") childInput[childInput.length]=new Option("Seguros",3043);
						
					 
						
						
							
							if (FatherSelected == "80") childInput[childInput.length]=new Option("Geología, geodesia y cartografía",3048);
						
					 
						
						
							
							if (FatherSelected == "90") childInput[childInput.length]=new Option("Ingeniería de materiales",3060);
						
					 
						
						
							
							if (FatherSelected == "100") childInput[childInput.length]=new Option("Notaría y registros",3067);
						
					 
						
						
							
							if (FatherSelected == "110") childInput[childInput.length]=new Option("Publicidad",3072);
						
					 
						
						
							
							if (FatherSelected == "120") childInput[childInput.length]=new Option("Automoción",3081);
						
					 
						
						
							
							if (FatherSelected == "140") childInput[childInput.length]=new Option("Medicinas alternativas",3102);
						
					 
						
						
							
							if (FatherSelected == "150") childInput[childInput.length]=new Option("ERP, CRM, Business Intelligence",3109);
						
					 
						
						
							
							if (FatherSelected == "190") childInput[childInput.length]=new Option("Televenta y marketing telefónico",3122);
						
					 
						
						
							
							if (FatherSelected == "10") childInput[childInput.length]=new Option("Finanzas y contabilidad",3005);
						
					 
						
						
							
							if (FatherSelected == "20") childInput[childInput.length]=new Option("Empresas públicas",3016);
						
					 
						
						
							
							if (FatherSelected == "30") childInput[childInput.length]=new Option("Medio ambiente",3022);
						
					 
						
						
							
							if (FatherSelected == "50") childInput[childInput.length]=new Option("Moda y confección",3032);
						
					 
						
						
							
							if (FatherSelected == "60") childInput[childInput.length]=new Option("Puericultura",3038);
						
					 
						
						
							
							if (FatherSelected == "80") childInput[childInput.length]=new Option("Industrial",3049);
						
					 
						
						
							
							if (FatherSelected == "90") childInput[childInput.length]=new Option("Interiorismo",3061);
						
					 
						
						
							
							if (FatherSelected == "110") childInput[childInput.length]=new Option("RRPP y eventos",3073);
						
					 
						
						
							
							if (FatherSelected == "120") childInput[childInput.length]=new Option("Carpintería",3082);
						
					 
						
						
							
							if (FatherSelected == "140") childInput[childInput.length]=new Option("Profesiones sanitarias",3103);
						
					 
						
						
							
							if (FatherSelected == "150") childInput[childInput.length]=new Option("Gestión de proyectos",3110);
						
					 
						
						
							
							if (FatherSelected == "190") childInput[childInput.length]=new Option("Venta al detalle",3121);
						
					 
						
						
							
							if (FatherSelected == "10") childInput[childInput.length]=new Option("Negociación y contratación",3006);
						
					 
						
						
							
							if (FatherSelected == "30") childInput[childInput.length]=new Option("Metrología",3023);
						
					 
						
						
							
							if (FatherSelected == "80") childInput[childInput.length]=new Option("Minas",3050);
						
					 
						
						
							
							if (FatherSelected == "90") childInput[childInput.length]=new Option("Oficios de la construcción",3062);
						
					 
						
						
							
							if (FatherSelected == "110") childInput[childInput.length]=new Option("Periodismo y edición",3074);
						
					 
						
						
							
							if (FatherSelected == "120") childInput[childInput.length]=new Option("Confección",3083);
						
					 
						
						
							
							if (FatherSelected == "140") childInput[childInput.length]=new Option("Psicología",3104);
						
					 
						
						
							
							if (FatherSelected == "150") childInput[childInput.length]=new Option("Hardware, redes y seguridad",3111);
						
					 
						
						
							
							if (FatherSelected == "10") childInput[childInput.length]=new Option("Operaciones societarias",3007);
						
					 
						
						
							
							if (FatherSelected == "80") childInput[childInput.length]=new Option("Naval y oceánico",3051);
						
					 
						
						
							
							if (FatherSelected == "110") childInput[childInput.length]=new Option("Producción",3075);
						
					 
						
						
							
							if (FatherSelected == "120") childInput[childInput.length]=new Option("Consumo y alimentación",3084);
						
					 
						
						
							
							if (FatherSelected == "150") childInput[childInput.length]=new Option("Helpdesk",3112);
						
					 
						
						
							
							if (FatherSelected == "150") childInput[childInput.length]=new Option("Programación",3124);
						
					 
						
						
							
							if (FatherSelected == "10") childInput[childInput.length]=new Option("Organización de la empresa",3008);
						
					 
						
						
							
							if (FatherSelected == "80") childInput[childInput.length]=new Option("Organización industrial",3052);
						
					 
						
						
							
							if (FatherSelected == "110") childInput[childInput.length]=new Option("Técnicas audiovisuales",3076);
						
					 
						
						
							
							if (FatherSelected == "120") childInput[childInput.length]=new Option("Electricidad",3085);
						
					 
						
						
							
							if (FatherSelected == "150") childInput[childInput.length]=new Option("Sistemas",3113);
						
					 
						
						
							
							if (FatherSelected == "10") childInput[childInput.length]=new Option("Recepción",3009);
						
					 
						
						
							
							if (FatherSelected == "80") childInput[childInput.length]=new Option("Químico",3053);
						
					 
						
						
							
							if (FatherSelected == "120") childInput[childInput.length]=new Option("Estética y cosmética",3086);
						
					 
						
						
							
							if (FatherSelected == "150") childInput[childInput.length]=new Option("Telecomunicaciones",3114);
						
					 
						
						
							
							if (FatherSelected == "10") childInput[childInput.length]=new Option("Secretariado",3010);
						
					 
						
						
							
							if (FatherSelected == "80") childInput[childInput.length]=new Option("Sistemas de defensa",3054);
						
					 
						
						
							
							if (FatherSelected == "120") childInput[childInput.length]=new Option("Fontanería",3087);
						
					 
						
						
							
							if (FatherSelected == "80") childInput[childInput.length]=new Option("Otras ingenierías",3055);
						
					 
						
						
							
							if (FatherSelected == "120") childInput[childInput.length]=new Option("Fotografía ",3088);
						
					 
						
						
							
							if (FatherSelected == "120") childInput[childInput.length]=new Option("Limpieza",3089);
						
					 
						
						
							
							if (FatherSelected == "120") childInput[childInput.length]=new Option("Seguridad y vigilancia",3090);
						
					 
						
						
							
							if (FatherSelected == "120") childInput[childInput.length]=new Option("Traducción e interpretación",3091);
						
					 
						
						
							
							if (FatherSelected == "120") childInput[childInput.length]=new Option("Transporte",3092);
						
					 
						
						
							
							if (FatherSelected == "120") childInput[childInput.length]=new Option("Otros oficios",3093);
						
					
				}
				
				
				function relacioProvincia(parentInput,childInput) {
					CleanItemsList(childInput);  
					var FatherSelected=parentInput.value;
					
					
					 
						
						
							
						
						if (FatherSelected == "67") childInput[childInput.length]=new Option("(Todas)",-570);
					 
						
						
							
						
						if (FatherSelected == "71") childInput[childInput.length]=new Option("(Todas)",-568);
					 
						
						
							
						
						if (FatherSelected == "70") childInput[childInput.length]=new Option("(Todas)",-566);
					 
						
						
							
						
						if (FatherSelected == "69") childInput[childInput.length]=new Option("(Todas)",-564);
					 
						
						
							
						
						if (FatherSelected == "68") childInput[childInput.length]=new Option("(Todas)",-562);
					 
						
						
							
						
						if (FatherSelected == "66") childInput[childInput.length]=new Option("(Todas)",-560);
					 
						
						
							
						
						if (FatherSelected == "65") childInput[childInput.length]=new Option("(Todas)",-558);
					 
						
						
							
						
						if (FatherSelected == "32") childInput[childInput.length]=new Option("(Todas)",-557);
					 
						
						
							
						
						if (FatherSelected == "63") childInput[childInput.length]=new Option("(Todas)",-523);
					 
						
						
							
						
						if (FatherSelected == "62") childInput[childInput.length]=new Option("(Todas)",-522);
					 
						
						
							
						
						if (FatherSelected == "61") childInput[childInput.length]=new Option("(Todas)",-521);
					 
						
						
							
						
						if (FatherSelected == "60") childInput[childInput.length]=new Option("(Todas)",-520);
					 
						
						
							
						
						if (FatherSelected == "59") childInput[childInput.length]=new Option("(Todas)",-519);
					 
						
						
							
						
						if (FatherSelected == "58") childInput[childInput.length]=new Option("(Todas)",-518);
					 
						
						
							
						
						if (FatherSelected == "57") childInput[childInput.length]=new Option("(Todas)",-517);
					 
						
						
							
						
						if (FatherSelected == "56") childInput[childInput.length]=new Option("(Todas)",-516);
					 
						
						
							
						
						if (FatherSelected == "55") childInput[childInput.length]=new Option("(Todas)",-515);
					 
						
						
							
						
						if (FatherSelected == "54") childInput[childInput.length]=new Option("(Todas)",-514);
					 
						
						
							
						
						if (FatherSelected == "53") childInput[childInput.length]=new Option("(Todas)",-513);
					 
						
						
							
						
						if (FatherSelected == "52") childInput[childInput.length]=new Option("(Todas)",-512);
					 
						
						
							
						
						if (FatherSelected == "51") childInput[childInput.length]=new Option("(Todas)",-511);
					 
						
						
							
						
						if (FatherSelected == "48") childInput[childInput.length]=new Option("(Todas)",-510);
					 
						
						
							
						
						if (FatherSelected == "47") childInput[childInput.length]=new Option("(Todas)",-509);
					 
						
						
							
						
						if (FatherSelected == "45") childInput[childInput.length]=new Option("(Todas)",-508);
					 
						
						
							
						
						if (FatherSelected == "42") childInput[childInput.length]=new Option("(Todas)",-507);
					 
						
						
							
						
						if (FatherSelected == "41") childInput[childInput.length]=new Option("(Todas)",-506);
					 
						
						
							
						
						if (FatherSelected == "40") childInput[childInput.length]=new Option("(Todas)",-505);
					 
						
						
							
						
						if (FatherSelected == "38") childInput[childInput.length]=new Option("(Todas)",-504);
					 
						
						
							
						
						if (FatherSelected == "36") childInput[childInput.length]=new Option("(Todas)",-503);
					 
						
						
							
						
						if (FatherSelected == "35") childInput[childInput.length]=new Option("(Todas)",-502);
					 
						
						
							
						
						if (FatherSelected == "34") childInput[childInput.length]=new Option("(Todas)",-501);
					 
						
						
							
						
						if (FatherSelected == "33") childInput[childInput.length]=new Option("(Todas)",-500);
					 
						
						
							
						
						if (FatherSelected == "30") childInput[childInput.length]=new Option("(Todas)",-499);
					 
						
						
							
						
						if (FatherSelected == "28") childInput[childInput.length]=new Option("(Todas)",-498);
					 
						
						
							
						
						if (FatherSelected == "27") childInput[childInput.length]=new Option("(Todas)",-497);
					 
						
						
							
						
						if (FatherSelected == "25") childInput[childInput.length]=new Option("(Todas)",-496);
					 
						
						
							
						
						if (FatherSelected == "24") childInput[childInput.length]=new Option("(Todas)",-495);
					 
						
						
							
						
						if (FatherSelected == "22") childInput[childInput.length]=new Option("(Todas)",-494);
					 
						
						
							
						
						if (FatherSelected == "16") childInput[childInput.length]=new Option("(Todas)",-493);
					 
						
						
							
						
						if (FatherSelected == "15") childInput[childInput.length]=new Option("(Todas)",-492);
					 
						
						
							
						
						if (FatherSelected == "13") childInput[childInput.length]=new Option("(Todas)",-491);
					 
						
						
							
						
						if (FatherSelected == "12") childInput[childInput.length]=new Option("(Todas)",-490);
					 
						
						
							
						
						if (FatherSelected == "9") childInput[childInput.length]=new Option("(Todas)",-489);
					 
						
						
							
						
						if (FatherSelected == "8") childInput[childInput.length]=new Option("(Todas)",-488);
					 
						
						
							
						
						if (FatherSelected == "6") childInput[childInput.length]=new Option("(Todas)",-487);
					 
						
						
							
						
						if (FatherSelected == "5") childInput[childInput.length]=new Option("(Todas)",-486);
					 
						
						
							
						
						if (FatherSelected == "0") childInput[childInput.length]=new Option("(Todas)",-485);
					 
						
						
							
						
						if (FatherSelected == "19") childInput[childInput.length]=new Option("(Todas)",-478);
					 
						
						
							
						
						if (FatherSelected == "23") childInput[childInput.length]=new Option("(Todas)",-465);
					 
						
						
							
						
						if (FatherSelected == "21") childInput[childInput.length]=new Option("(Todas)",-454);
					 
						
						
							
						
						if (FatherSelected == "49") childInput[childInput.length]=new Option("(Todas)",-448);
					 
						
						
							
						
						if (FatherSelected == "31") childInput[childInput.length]=new Option("(Todas)",-429);
					 
						
						
							
						
						if (FatherSelected == "43") childInput[childInput.length]=new Option("(Todas)",-407);
					 
						
						
							
						
						if (FatherSelected == "2") childInput[childInput.length]=new Option("(Todas)",-401);
					 
						
						
							
						
						if (FatherSelected == "14") childInput[childInput.length]=new Option("(Todas)",-384);
					 
						
						
							
						
						if (FatherSelected == "26") childInput[childInput.length]=new Option("(Todas)",-363);
					 
						
						
							
						
						if (FatherSelected == "4") childInput[childInput.length]=new Option("(Todas)",-353);
					 
						
						
							
						
						if (FatherSelected == "39") childInput[childInput.length]=new Option("(Todas)",-338);
					 
						
						
							
						
						if (FatherSelected == "44") childInput[childInput.length]=new Option("(Todas)",-311);
					 
						
						
							
						
						if (FatherSelected == "20") childInput[childInput.length]=new Option("(Todas)",-288);
					 
						
						
							
						
						if (FatherSelected == "37") childInput[childInput.length]=new Option("(Todas)",-273);
					 
						
						
							
						
						if (FatherSelected == "1") childInput[childInput.length]=new Option("(Todas)",-256);
					 
						
						
							
						
						if (FatherSelected == "50") childInput[childInput.length]=new Option("(Todas)",-254);
					 
						
						
							
						
						if (FatherSelected == "46") childInput[childInput.length]=new Option("(Todas)",-231);
					 
						
						
							
						
						if (FatherSelected == "11") childInput[childInput.length]=new Option("(Todas)",-208);
					 
						
						
							
						
						if (FatherSelected == "29") childInput[childInput.length]=new Option("(Todas)",-173);
					 
						
						
							
						
						if (FatherSelected == "10") childInput[childInput.length]=new Option("(Todas)",-159);
					 
						
						
							
						
						if (FatherSelected == "18") childInput[childInput.length]=new Option("(Todas)",-107);
					 
						
						
							
						
						if (FatherSelected == "7") childInput[childInput.length]=new Option("(Todas)",-79);
					 
						
						
							
						
						if (FatherSelected == "3") childInput[childInput.length]=new Option("(Todas)",-54);
					 
						
						
							
						
						if (FatherSelected == "17") childInput[childInput.length]=new Option("(Seleccionar)",0);
					 
						
						
							
						
						if (FatherSelected == "32") childInput[childInput.length]=new Option("Otro País",1);
					 
						
						
							
						
						if (FatherSelected == "17") childInput[childInput.length]=new Option("A Coruña",28);
					 
						
						
							
						
						if (FatherSelected == "3") childInput[childInput.length]=new Option("Bahía Blanca",55);
					 
						
						
							
						
						if (FatherSelected == "7") childInput[childInput.length]=new Option("Acre",80);
					 
						
						
							
						
						if (FatherSelected == "18") childInput[childInput.length]=new Option("Alabama",108);
					 
						
						
							
						
						if (FatherSelected == "10") childInput[childInput.length]=new Option("Antofagasta",160);
					 
						
						
							
						
						if (FatherSelected == "29") childInput[childInput.length]=new Option("Aguascalientes",174);
					 
						
						
							
						
						if (FatherSelected == "11") childInput[childInput.length]=new Option("Armenia",209);
					 
						
						
							
						
						if (FatherSelected == "46") childInput[childInput.length]=new Option("Anzoátegui",232);
					 
						
						
							
						
						if (FatherSelected == "50") childInput[childInput.length]=new Option("Liechtenstein",255);
					 
						
						
							
						
						if (FatherSelected == "1") childInput[childInput.length]=new Option("Baden - Württemberg",257);
					 
						
						
							
						
						if (FatherSelected == "37") childInput[childInput.length]=new Option("Açores",274);
					 
						
						
							
						
						if (FatherSelected == "20") childInput[childInput.length]=new Option("Alsace",289);
					 
						
						
							
						
						if (FatherSelected == "44") childInput[childInput.length]=new Option("Aargau",312);
					 
						
						
							
						
						if (FatherSelected == "39") childInput[childInput.length]=new Option("Channel Islands",339);
					 
						
						
							
						
						if (FatherSelected == "4") childInput[childInput.length]=new Option("Burgenland",354);
					 
						
						
							
						
						if (FatherSelected == "26") childInput[childInput.length]=new Option("Abruzzo",364);
					 
						
						
							
						
						if (FatherSelected == "14") childInput[childInput.length]=new Option("Bornholms Amt",385);
					 
						
						
							
						
						if (FatherSelected == "2") childInput[childInput.length]=new Option("Andorra la Vella",402);
					 
						
						
							
						
						if (FatherSelected == "43") childInput[childInput.length]=new Option("Blekinge län",408);
					 
						
						
							
						
						if (FatherSelected == "31") childInput[childInput.length]=new Option("Aust Agder",430);
					 
						
						
							
						
						if (FatherSelected == "49") childInput[childInput.length]=new Option("Dublin",449);
					 
						
						
							
						
						if (FatherSelected == "21") childInput[childInput.length]=new Option("Islas Aegea",455);
					 
						
						
							
						
						if (FatherSelected == "23") childInput[childInput.length]=new Option("Drenthe",466);
					 
						
						
							
						
						if (FatherSelected == "19") childInput[childInput.length]=new Option("Åland",479);
					 
						
						
							
						
						if (FatherSelected == "5") childInput[childInput.length]=new Option("Bélgica",524);
					 
						
						
							
						
						if (FatherSelected == "6") childInput[childInput.length]=new Option("Bolivia",525);
					 
						
						
							
						
						if (FatherSelected == "8") childInput[childInput.length]=new Option("Bulgaria",526);
					 
						
						
							
						
						if (FatherSelected == "9") childInput[childInput.length]=new Option("Chequia",527);
					 
						
						
							
						
						if (FatherSelected == "12") childInput[childInput.length]=new Option("Costa Rica",528);
					 
						
						
							
						
						if (FatherSelected == "13") childInput[childInput.length]=new Option("Cuba",529);
					 
						
						
							
						
						if (FatherSelected == "15") childInput[childInput.length]=new Option("Ecuador",530);
					 
						
						
							
						
						if (FatherSelected == "16") childInput[childInput.length]=new Option("El Salvador",531);
					 
						
						
							
						
						if (FatherSelected == "22") childInput[childInput.length]=new Option("Guatemala",532);
					 
						
						
							
						
						if (FatherSelected == "24") childInput[childInput.length]=new Option("Hungría",533);
					 
						
						
							
						
						if (FatherSelected == "25") childInput[childInput.length]=new Option("Islandia",534);
					 
						
						
							
						
						if (FatherSelected == "27") childInput[childInput.length]=new Option("Japón",535);
					 
						
						
							
						
						if (FatherSelected == "28") childInput[childInput.length]=new Option("Luxemburgo",536);
					 
						
						
							
						
						if (FatherSelected == "30") childInput[childInput.length]=new Option("Nicaragua",537);
					 
						
						
							
						
						if (FatherSelected == "33") childInput[childInput.length]=new Option("Panamá",538);
					 
						
						
							
						
						if (FatherSelected == "34") childInput[childInput.length]=new Option("Paraguay",539);
					 
						
						
							
						
						if (FatherSelected == "35") childInput[childInput.length]=new Option("Perú",540);
					 
						
						
							
						
						if (FatherSelected == "36") childInput[childInput.length]=new Option("Polonia",541);
					 
						
						
							
						
						if (FatherSelected == "38") childInput[childInput.length]=new Option("Puerto Rico",542);
					 
						
						
							
						
						if (FatherSelected == "40") childInput[childInput.length]=new Option("Rep. Dominicana",543);
					 
						
						
							
						
						if (FatherSelected == "41") childInput[childInput.length]=new Option("Rumania",544);
					 
						
						
							
						
						if (FatherSelected == "42") childInput[childInput.length]=new Option("Rusia",545);
					 
						
						
							
						
						if (FatherSelected == "45") childInput[childInput.length]=new Option("Uruguay",546);
					 
						
						
							
						
						if (FatherSelected == "47") childInput[childInput.length]=new Option("Serbia y Montenegro",547);
					 
						
						
							
						
						if (FatherSelected == "51") childInput[childInput.length]=new Option("Resto de Europa",548);
					 
						
						
							
						
						if (FatherSelected == "53") childInput[childInput.length]=new Option("Resto de Lat.",549);
					 
						
						
							
						
						if (FatherSelected == "55") childInput[childInput.length]=new Option("China",550);
					 
						
						
							
						
						if (FatherSelected == "56") childInput[childInput.length]=new Option("India",551);
					 
						
						
							
						
						if (FatherSelected == "57") childInput[childInput.length]=new Option("Resto de Asia",552);
					 
						
						
							
						
						if (FatherSelected == "59") childInput[childInput.length]=new Option("Australia",553);
					 
						
						
							
						
						if (FatherSelected == "60") childInput[childInput.length]=new Option("Nueva Zelanda",554);
					 
						
						
							
						
						if (FatherSelected == "61") childInput[childInput.length]=new Option("Resto de Oceania",555);
					 
						
						
							
						
						if (FatherSelected == "63") childInput[childInput.length]=new Option("Canadá",556);
					 
						
						
							
						
						if (FatherSelected == "17") childInput[childInput.length]=new Option("Álava",2);
					 
						
						
							
						
						if (FatherSelected == "3") childInput[childInput.length]=new Option("Buenos Aires",56);
					 
						
						
							
						
						if (FatherSelected == "7") childInput[childInput.length]=new Option("Alagoas",81);
					 
						
						
							
						
						if (FatherSelected == "18") childInput[childInput.length]=new Option("Alaska",109);
					 
						
						
							
						
						if (FatherSelected == "10") childInput[childInput.length]=new Option("Atacama",161);
					 
						
						
							
						
						if (FatherSelected == "29") childInput[childInput.length]=new Option("Baja California",175);
					 
						
						
							
						
						if (FatherSelected == "11") childInput[childInput.length]=new Option("Barranquilla",210);
					 
						
						
							
						
						if (FatherSelected == "46") childInput[childInput.length]=new Option("Apure",233);
					 
						
						
							
						
						if (FatherSelected == "1") childInput[childInput.length]=new Option("Bayern",258);
					 
						
						
							
						
						if (FatherSelected == "37") childInput[childInput.length]=new Option("Algarve",275);
					 
						
						
							
						
						if (FatherSelected == "20") childInput[childInput.length]=new Option("Aquitaine",290);
					 
						
						
							
						
						if (FatherSelected == "44") childInput[childInput.length]=new Option("Appenzell Innerrodhen",313);
					 
						
						
							
						
						if (FatherSelected == "39") childInput[childInput.length]=new Option("East Anglia",340);
					 
						
						
							
						
						if (FatherSelected == "4") childInput[childInput.length]=new Option("Kärnten",355);
					 
						
						
							
						
						if (FatherSelected == "26") childInput[childInput.length]=new Option("Basilicata",365);
					 
						
						
							
						
						if (FatherSelected == "14") childInput[childInput.length]=new Option("Færøerne",386);
					 
						
						
							
						
						if (FatherSelected == "2") childInput[childInput.length]=new Option("La Massana",403);
					 
						
						
							
						
						if (FatherSelected == "43") childInput[childInput.length]=new Option("Dalarnas län",409);
					 
						
						
							
						
						if (FatherSelected == "31") childInput[childInput.length]=new Option("Buskerud",431);
					 
						
						
							
						
						if (FatherSelected == "49") childInput[childInput.length]=new Option("Cork",450);
					 
						
						
							
						
						if (FatherSelected == "21") childInput[childInput.length]=new Option("Grecia Central y Evvoia",456);
					 
						
						
							
						
						if (FatherSelected == "23") childInput[childInput.length]=new Option("Flevoland",467);
					 
						
						
							
						
						if (FatherSelected == "19") childInput[childInput.length]=new Option("Finlandia del Este",480);
					 
						
						
							
						
						if (FatherSelected == "17") childInput[childInput.length]=new Option("Albacete",3);
					 
						
						
							
						
						if (FatherSelected == "3") childInput[childInput.length]=new Option("Capital Federal",57);
					 
						
						
							
						
						if (FatherSelected == "7") childInput[childInput.length]=new Option("Amapá",82);
					 
						
						
							
						
						if (FatherSelected == "18") childInput[childInput.length]=new Option("Arizona",110);
					 
						
						
							
						
						if (FatherSelected == "10") childInput[childInput.length]=new Option("Bío Bío",162);
					 
						
						
							
						
						if (FatherSelected == "29") childInput[childInput.length]=new Option("Baja California Sur",176);
					 
						
						
							
						
						if (FatherSelected == "11") childInput[childInput.length]=new Option("Bogotá",211);
					 
						
						
							
						
						if (FatherSelected == "46") childInput[childInput.length]=new Option("Aragua",234);
					 
						
						
							
						
						if (FatherSelected == "1") childInput[childInput.length]=new Option("Berlin",259);
					 
						
						
							
						
						if (FatherSelected == "37") childInput[childInput.length]=new Option("Alto Alentejo",276);
					 
						
						
							
						
						if (FatherSelected == "20") childInput[childInput.length]=new Option("Auvergne",291);
					 
						
						
							
						
						if (FatherSelected == "44") childInput[childInput.length]=new Option("Appenzell Auserrodhen",314);
					 
						
						
							
						
						if (FatherSelected == "39") childInput[childInput.length]=new Option("East Midlands",341);
					 
						
						
							
						
						if (FatherSelected == "4") childInput[childInput.length]=new Option("Niederösterreich",356);
					 
						
						
							
						
						if (FatherSelected == "26") childInput[childInput.length]=new Option("Calabria",366);
					 
						
						
							
						
						if (FatherSelected == "14") childInput[childInput.length]=new Option("Frederiksborg Amt",387);
					 
						
						
							
						
						if (FatherSelected == "2") childInput[childInput.length]=new Option("Les Escaldes - Engordany",404);
					 
						
						
							
						
						if (FatherSelected == "43") childInput[childInput.length]=new Option("Gotlands län",410);
					 
						
						
							
						
						if (FatherSelected == "31") childInput[childInput.length]=new Option("Finnmark",432);
					 
						
						
							
						
						if (FatherSelected == "49") childInput[childInput.length]=new Option("Galway",451);
					 
						
						
							
						
						if (FatherSelected == "21") childInput[childInput.length]=new Option("Creta",457);
					 
						
						
							
						
						if (FatherSelected == "23") childInput[childInput.length]=new Option("Friesland",468);
					 
						
						
							
						
						if (FatherSelected == "19") childInput[childInput.length]=new Option("Finlandia del Oeste",481);
					 
						
						
							
						
						if (FatherSelected == "17") childInput[childInput.length]=new Option("Alicante/Alacant",4);
					 
						
						
							
						
						if (FatherSelected == "3") childInput[childInput.length]=new Option("Catamarca",58);
					 
						
						
							
						
						if (FatherSelected == "7") childInput[childInput.length]=new Option("Amazonas",83);
					 
						
						
							
						
						if (FatherSelected == "18") childInput[childInput.length]=new Option("Arkansas",111);
					 
						
						
							
						
						if (FatherSelected == "10") childInput[childInput.length]=new Option("Coquimbo",163);
					 
						
						
							
						
						if (FatherSelected == "29") childInput[childInput.length]=new Option("Campeche",177);
					 
						
						
							
						
						if (FatherSelected == "11") childInput[childInput.length]=new Option("Bucaramanga",212);
					 
						
						
							
						
						if (FatherSelected == "46") childInput[childInput.length]=new Option("Barinas",235);
					 
						
						
							
						
						if (FatherSelected == "1") childInput[childInput.length]=new Option("Brandenburg",260);
					 
						
						
							
						
						if (FatherSelected == "37") childInput[childInput.length]=new Option("Baixo Alentejo",277);
					 
						
						
							
						
						if (FatherSelected == "20") childInput[childInput.length]=new Option("Basse Normandie",292);
					 
						
						
							
						
						if (FatherSelected == "44") childInput[childInput.length]=new Option("Bern",315);
					 
						
						
							
						
						if (FatherSelected == "39") childInput[childInput.length]=new Option("Home Counties",342);
					 
						
						
							
						
						if (FatherSelected == "4") childInput[childInput.length]=new Option("Oberösterreich",357);
					 
						
						
							
						
						if (FatherSelected == "26") childInput[childInput.length]=new Option("Campania",367);
					 
						
						
							
						
						if (FatherSelected == "14") childInput[childInput.length]=new Option("Fyns Amt",388);
					 
						
						
							
						
						if (FatherSelected == "2") childInput[childInput.length]=new Option("Ordino",405);
					 
						
						
							
						
						if (FatherSelected == "43") childInput[childInput.length]=new Option("Gävleborgs län",411);
					 
						
						
							
						
						if (FatherSelected == "31") childInput[childInput.length]=new Option("Hedmark",433);
					 
						
						
							
						
						if (FatherSelected == "49") childInput[childInput.length]=new Option("Limerick",452);
					 
						
						
							
						
						if (FatherSelected == "21") childInput[childInput.length]=new Option("Epirus",458);
					 
						
						
							
						
						if (FatherSelected == "23") childInput[childInput.length]=new Option("Gelderland",469);
					 
						
						
							
						
						if (FatherSelected == "19") childInput[childInput.length]=new Option("Finlandia del Sur - Helsinki",482);
					 
						
						
							
						
						if (FatherSelected == "17") childInput[childInput.length]=new Option("Almería",5);
					 
						
						
							
						
						if (FatherSelected == "3") childInput[childInput.length]=new Option("Chaco",59);
					 
						
						
							
						
						if (FatherSelected == "7") childInput[childInput.length]=new Option("Bahia",84);
					 
						
						
							
						
						if (FatherSelected == "18") childInput[childInput.length]=new Option("California",112);
					 
						
						
							
						
						if (FatherSelected == "10") childInput[childInput.length]=new Option("Isla de Pascua",164);
					 
						
						
							
						
						if (FatherSelected == "29") childInput[childInput.length]=new Option("Chiapas",178);
					 
						
						
							
						
						if (FatherSelected == "11") childInput[childInput.length]=new Option("Buga",213);
					 
						
						
							
						
						if (FatherSelected == "46") childInput[childInput.length]=new Option("Bolívar",236);
					 
						
						
							
						
						if (FatherSelected == "1") childInput[childInput.length]=new Option("Bremen",261);
					 
						
						
							
						
						if (FatherSelected == "37") childInput[childInput.length]=new Option("Beira Alta",278);
					 
						
						
							
						
						if (FatherSelected == "20") childInput[childInput.length]=new Option("Bourgogne",293);
					 
						
						
							
						
						if (FatherSelected == "44") childInput[childInput.length]=new Option("Basel Land",316);
					 
						
						
							
						
						if (FatherSelected == "39") childInput[childInput.length]=new Option("London",343);
					 
						
						
							
						
						if (FatherSelected == "4") childInput[childInput.length]=new Option("Salzburg",358);
					 
						
						
							
						
						if (FatherSelected == "26") childInput[childInput.length]=new Option("Emilia Romagna",368);
					 
						
						
							
						
						if (FatherSelected == "14") childInput[childInput.length]=new Option("Grønland",389);
					 
						
						
							
						
						if (FatherSelected == "2") childInput[childInput.length]=new Option("Sant Julià de Lòria",406);
					 
						
						
							
						
						if (FatherSelected == "43") childInput[childInput.length]=new Option("Hallands län",412);
					 
						
						
							
						
						if (FatherSelected == "31") childInput[childInput.length]=new Option("Hordaland m/Bergen",434);
					 
						
						
							
						
						if (FatherSelected == "49") childInput[childInput.length]=new Option("Northern Ireland",453);
					 
						
						
							
						
						if (FatherSelected == "21") childInput[childInput.length]=new Option("Islas Ionian (Eptanese)",459);
					 
						
						
							
						
						if (FatherSelected == "23") childInput[childInput.length]=new Option("Groningen",470);
					 
						
						
							
						
						if (FatherSelected == "19") childInput[childInput.length]=new Option("Lapland",483);
					 
						
						
							
						
						if (FatherSelected == "17") childInput[childInput.length]=new Option("Asturias",6);
					 
						
						
							
						
						if (FatherSelected == "3") childInput[childInput.length]=new Option("Chubut",60);
					 
						
						
							
						
						if (FatherSelected == "7") childInput[childInput.length]=new Option("Ceará",85);
					 
						
						
							
						
						if (FatherSelected == "18") childInput[childInput.length]=new Option("Colorado",113);
					 
						
						
							
						
						if (FatherSelected == "10") childInput[childInput.length]=new Option("La Araucanma",165);
					 
						
						
							
						
						if (FatherSelected == "29") childInput[childInput.length]=new Option("Chihuahua",179);
					 
						
						
							
						
						if (FatherSelected == "11") childInput[childInput.length]=new Option("Cali",214);
					 
						
						
							
						
						if (FatherSelected == "46") childInput[childInput.length]=new Option("Carabobo",237);
					 
						
						
							
						
						if (FatherSelected == "1") childInput[childInput.length]=new Option("Hamburg",262);
					 
						
						
							
						
						if (FatherSelected == "37") childInput[childInput.length]=new Option("Beira Baixa",279);
					 
						
						
							
						
						if (FatherSelected == "20") childInput[childInput.length]=new Option("Bretagne",294);
					 
						
						
							
						
						if (FatherSelected == "44") childInput[childInput.length]=new Option("Basel Stadt",317);
					 
						
						
							
						
						if (FatherSelected == "39") childInput[childInput.length]=new Option("North East",344);
					 
						
						
							
						
						if (FatherSelected == "4") childInput[childInput.length]=new Option("Steiermark",359);
					 
						
						
							
						
						if (FatherSelected == "26") childInput[childInput.length]=new Option("Friuli - Venezia Giulia",369);
					 
						
						
							
						
						if (FatherSelected == "14") childInput[childInput.length]=new Option("Københams Amt",390);
					 
						
						
							
						
						if (FatherSelected == "43") childInput[childInput.length]=new Option("Jämtlands län",413);
					 
						
						
							
						
						if (FatherSelected == "31") childInput[childInput.length]=new Option("Møre og Romsdal",435);
					 
						
						
							
						
						if (FatherSelected == "21") childInput[childInput.length]=new Option("Macedonia",460);
					 
						
						
							
						
						if (FatherSelected == "23") childInput[childInput.length]=new Option("Limburg",471);
					 
						
						
							
						
						if (FatherSelected == "19") childInput[childInput.length]=new Option("Oulu",484);
					 
						
						
							
						
						if (FatherSelected == "17") childInput[childInput.length]=new Option("Ávila",7);
					 
						
						
							
						
						if (FatherSelected == "3") childInput[childInput.length]=new Option("Corrientes",61);
					 
						
						
							
						
						if (FatherSelected == "7") childInput[childInput.length]=new Option("Distrito Federal",86);
					 
						
						
							
						
						if (FatherSelected == "18") childInput[childInput.length]=new Option("Connecticut",114);
					 
						
						
							
						
						if (FatherSelected == "10") childInput[childInput.length]=new Option("Libertador Gral Bernardo O\u0027Higgins",166);
					 
						
						
							
						
						if (FatherSelected == "29") childInput[childInput.length]=new Option("Coahuila",180);
					 
						
						
							
						
						if (FatherSelected == "11") childInput[childInput.length]=new Option("Cartagena",215);
					 
						
						
							
						
						if (FatherSelected == "46") childInput[childInput.length]=new Option("Delta Amacuro",238);
					 
						
						
							
						
						if (FatherSelected == "1") childInput[childInput.length]=new Option("Hessen",263);
					 
						
						
							
						
						if (FatherSelected == "37") childInput[childInput.length]=new Option("Beira Litoral",280);
					 
						
						
							
						
						if (FatherSelected == "20") childInput[childInput.length]=new Option("Centre Val de Loire",295);
					 
						
						
							
						
						if (FatherSelected == "44") childInput[childInput.length]=new Option("Freiburg",318);
					 
						
						
							
						
						if (FatherSelected == "39") childInput[childInput.length]=new Option("North West",345);
					 
						
						
							
						
						if (FatherSelected == "4") childInput[childInput.length]=new Option("Tirol",360);
					 
						
						
							
						
						if (FatherSelected == "26") childInput[childInput.length]=new Option("Lazio",370);
					 
						
						
							
						
						if (FatherSelected == "14") childInput[childInput.length]=new Option("Nordjyllands Amt",391);
					 
						
						
							
						
						if (FatherSelected == "43") childInput[childInput.length]=new Option("Jönköpings län",414);
					 
						
						
							
						
						if (FatherSelected == "31") childInput[childInput.length]=new Option("Nord - Trøndelag",436);
					 
						
						
							
						
						if (FatherSelected == "21") childInput[childInput.length]=new Option("Mt. Athos (Ayion Oros)",461);
					 
						
						
							
						
						if (FatherSelected == "23") childInput[childInput.length]=new Option("Noord Brabant",472);
					 
						
						
							
						
						if (FatherSelected == "17") childInput[childInput.length]=new Option("Badajoz",8);
					 
						
						
							
						
						if (FatherSelected == "3") childInput[childInput.length]=new Option("Córdoba",62);
					 
						
						
							
						
						if (FatherSelected == "7") childInput[childInput.length]=new Option("Espírito Santo",87);
					 
						
						
							
						
						if (FatherSelected == "18") childInput[childInput.length]=new Option("Delaware",115);
					 
						
						
							
						
						if (FatherSelected == "10") childInput[childInput.length]=new Option("Los Lagos",167);
					 
						
						
							
						
						if (FatherSelected == "29") childInput[childInput.length]=new Option("Colima",181);
					 
						
						
							
						
						if (FatherSelected == "11") childInput[childInput.length]=new Option("Cucuta",216);
					 
						
						
							
						
						if (FatherSelected == "46") childInput[childInput.length]=new Option("Distrito Federal",239);
					 
						
						
							
						
						if (FatherSelected == "1") childInput[childInput.length]=new Option("Mecklenburg - Vorpommern",264);
					 
						
						
							
						
						if (FatherSelected == "37") childInput[childInput.length]=new Option("Douro",281);
					 
						
						
							
						
						if (FatherSelected == "20") childInput[childInput.length]=new Option("Champagne - Ardennes",296);
					 
						
						
							
						
						if (FatherSelected == "44") childInput[childInput.length]=new Option("Genf",319);
					 
						
						
							
						
						if (FatherSelected == "39") childInput[childInput.length]=new Option("Northern Ireland",346);
					 
						
						
							
						
						if (FatherSelected == "4") childInput[childInput.length]=new Option("Vorarlberg",361);
					 
						
						
							
						
						if (FatherSelected == "26") childInput[childInput.length]=new Option("Liguria",371);
					 
						
						
							
						
						if (FatherSelected == "14") childInput[childInput.length]=new Option("Ribe Amt",392);
					 
						
						
							
						
						if (FatherSelected == "43") childInput[childInput.length]=new Option("Kalmar län",415);
					 
						
						
							
						
						if (FatherSelected == "31") childInput[childInput.length]=new Option("Nordland",437);
					 
						
						
							
						
						if (FatherSelected == "21") childInput[childInput.length]=new Option("Peloponeso",462);
					 
						
						
							
						
						if (FatherSelected == "23") childInput[childInput.length]=new Option("Noord Holland",473);
					 
						
						
							
						
						if (FatherSelected == "17") childInput[childInput.length]=new Option("Barcelona",9);
					 
						
						
							
						
						if (FatherSelected == "3") childInput[childInput.length]=new Option("Entre Ríos",63);
					 
						
						
							
						
						if (FatherSelected == "7") childInput[childInput.length]=new Option("Goiás",88);
					 
						
						
							
						
						if (FatherSelected == "18") childInput[childInput.length]=new Option("Florida",116);
					 
						
						
							
						
						if (FatherSelected == "10") childInput[childInput.length]=new Option("Magallanes y Antártica Chilena",168);
					 
						
						
							
						
						if (FatherSelected == "29") childInput[childInput.length]=new Option("Distrito Federal",182);
					 
						
						
							
						
						if (FatherSelected == "11") childInput[childInput.length]=new Option("Ibague",217);
					 
						
						
							
						
						if (FatherSelected == "46") childInput[childInput.length]=new Option("Falcón",240);
					 
						
						
							
						
						if (FatherSelected == "1") childInput[childInput.length]=new Option("Niedersachsen",265);
					 
						
						
							
						
						if (FatherSelected == "37") childInput[childInput.length]=new Option("Estremadura",282);
					 
						
						
							
						
						if (FatherSelected == "20") childInput[childInput.length]=new Option("Corse",297);
					 
						
						
							
						
						if (FatherSelected == "44") childInput[childInput.length]=new Option("Glarus",320);
					 
						
						
							
						
						if (FatherSelected == "39") childInput[childInput.length]=new Option("Scotland",347);
					 
						
						
							
						
						if (FatherSelected == "4") childInput[childInput.length]=new Option("Wien",362);
					 
						
						
							
						
						if (FatherSelected == "26") childInput[childInput.length]=new Option("Lombardia",372);
					 
						
						
							
						
						if (FatherSelected == "14") childInput[childInput.length]=new Option("Ringkjøbing Amt",393);
					 
						
						
							
						
						if (FatherSelected == "43") childInput[childInput.length]=new Option("Kronobergs län",416);
					 
						
						
							
						
						if (FatherSelected == "31") childInput[childInput.length]=new Option("Oppland",438);
					 
						
						
							
						
						if (FatherSelected == "21") childInput[childInput.length]=new Option("Thessaly",463);
					 
						
						
							
						
						if (FatherSelected == "23") childInput[childInput.length]=new Option("Overijssel",474);
					 
						
						
							
						
						if (FatherSelected == "17") childInput[childInput.length]=new Option("Burgos",10);
					 
						
						
							
						
						if (FatherSelected == "3") childInput[childInput.length]=new Option("Jujuy",64);
					 
						
						
							
						
						if (FatherSelected == "7") childInput[childInput.length]=new Option("Maranhao",89);
					 
						
						
							
						
						if (FatherSelected == "18") childInput[childInput.length]=new Option("Georgia",117);
					 
						
						
							
						
						if (FatherSelected == "10") childInput[childInput.length]=new Option("Maule",169);
					 
						
						
							
						
						if (FatherSelected == "29") childInput[childInput.length]=new Option("Durango",183);
					 
						
						
							
						
						if (FatherSelected == "11") childInput[childInput.length]=new Option("Manizales",218);
					 
						
						
							
						
						if (FatherSelected == "46") childInput[childInput.length]=new Option("Gaurico",241);
					 
						
						
							
						
						if (FatherSelected == "1") childInput[childInput.length]=new Option("Nordrhein - Westfalen",266);
					 
						
						
							
						
						if (FatherSelected == "37") childInput[childInput.length]=new Option("Macau",283);
					 
						
						
							
						
						if (FatherSelected == "20") childInput[childInput.length]=new Option("Franche Comté",298);
					 
						
						
							
						
						if (FatherSelected == "44") childInput[childInput.length]=new Option("Graubünden",321);
					 
						
						
							
						
						if (FatherSelected == "39") childInput[childInput.length]=new Option("South East",348);
					 
						
						
							
						
						if (FatherSelected == "26") childInput[childInput.length]=new Option("Marche",373);
					 
						
						
							
						
						if (FatherSelected == "14") childInput[childInput.length]=new Option("Roskilde Amt",394);
					 
						
						
							
						
						if (FatherSelected == "43") childInput[childInput.length]=new Option("Norrbottens län",417);
					 
						
						
							
						
						if (FatherSelected == "31") childInput[childInput.length]=new Option("Oslo m/Akershus",439);
					 
						
						
							
						
						if (FatherSelected == "21") childInput[childInput.length]=new Option("Thrace",464);
					 
						
						
							
						
						if (FatherSelected == "23") childInput[childInput.length]=new Option("Utrecht",475);
					 
						
						
							
						
						if (FatherSelected == "17") childInput[childInput.length]=new Option("Cáceres",11);
					 
						
						
							
						
						if (FatherSelected == "3") childInput[childInput.length]=new Option("La Pampa",65);
					 
						
						
							
						
						if (FatherSelected == "7") childInput[childInput.length]=new Option("Mato Grosso",90);
					 
						
						
							
						
						if (FatherSelected == "18") childInput[childInput.length]=new Option("Hawaii",118);
					 
						
						
							
						
						if (FatherSelected == "10") childInput[childInput.length]=new Option("Santiago",170);
					 
						
						
							
						
						if (FatherSelected == "29") childInput[childInput.length]=new Option("Estado de México",184);
					 
						
						
							
						
						if (FatherSelected == "11") childInput[childInput.length]=new Option("Medellín",219);
					 
						
						
							
						
						if (FatherSelected == "46") childInput[childInput.length]=new Option("Lara",242);
					 
						
						
							
						
						if (FatherSelected == "1") childInput[childInput.length]=new Option("Rheinland - Pfalz",267);
					 
						
						
							
						
						if (FatherSelected == "37") childInput[childInput.length]=new Option("Madeira",284);
					 
						
						
							
						
						if (FatherSelected == "20") childInput[childInput.length]=new Option("Haute Normandie",299);
					 
						
						
							
						
						if (FatherSelected == "44") childInput[childInput.length]=new Option("Luzern",322);
					 
						
						
							
						
						if (FatherSelected == "39") childInput[childInput.length]=new Option("South West",349);
					 
						
						
							
						
						if (FatherSelected == "26") childInput[childInput.length]=new Option("Molise",374);
					 
						
						
							
						
						if (FatherSelected == "14") childInput[childInput.length]=new Option("Storstrøms Amt",395);
					 
						
						
							
						
						if (FatherSelected == "43") childInput[childInput.length]=new Option("Skåne län",418);
					 
						
						
							
						
						if (FatherSelected == "31") childInput[childInput.length]=new Option("Rogaland",440);
					 
						
						
							
						
						if (FatherSelected == "23") childInput[childInput.length]=new Option("Zeeland",476);
					 
						
						
							
						
						if (FatherSelected == "17") childInput[childInput.length]=new Option("Cádiz",12);
					 
						
						
							
						
						if (FatherSelected == "3") childInput[childInput.length]=new Option("La Rioja",66);
					 
						
						
							
						
						if (FatherSelected == "7") childInput[childInput.length]=new Option("Mato Grosso do Sul",91);
					 
						
						
							
						
						if (FatherSelected == "18") childInput[childInput.length]=new Option("Idaho",119);
					 
						
						
							
						
						if (FatherSelected == "10") childInput[childInput.length]=new Option("Tarapacá",171);
					 
						
						
							
						
						if (FatherSelected == "11") childInput[childInput.length]=new Option("Montería",220);
					 
						
						
							
						
						if (FatherSelected == "46") childInput[childInput.length]=new Option("Miranda",243);
					 
						
						
							
						
						if (FatherSelected == "1") childInput[childInput.length]=new Option("Saarland",268);
					 
						
						
							
						
						if (FatherSelected == "37") childInput[childInput.length]=new Option("Minho",285);
					 
						
						
							
						
						if (FatherSelected == "20") childInput[childInput.length]=new Option("Île de France",300);
					 
						
						
							
						
						if (FatherSelected == "44") childInput[childInput.length]=new Option("Jura",323);
					 
						
						
							
						
						if (FatherSelected == "39") childInput[childInput.length]=new Option("Wales",350);
					 
						
						
							
						
						if (FatherSelected == "26") childInput[childInput.length]=new Option("Piemonte",375);
					 
						
						
							
						
						if (FatherSelected == "14") childInput[childInput.length]=new Option("Sønderjyllands Amt",396);
					 
						
						
							
						
						if (FatherSelected == "43") childInput[childInput.length]=new Option("Stockholms län",419);
					 
						
						
							
						
						if (FatherSelected == "31") childInput[childInput.length]=new Option("Sogn og Fjordane",441);
					 
						
						
							
						
						if (FatherSelected == "23") childInput[childInput.length]=new Option("Zuid Holland",477);
					 
						
						
							
						
						if (FatherSelected == "17") childInput[childInput.length]=new Option("Cantabria",13);
					 
						
						
							
						
						if (FatherSelected == "3") childInput[childInput.length]=new Option("Mendoza",67);
					 
						
						
							
						
						if (FatherSelected == "7") childInput[childInput.length]=new Option("Minas Gerais",92);
					 
						
						
							
						
						if (FatherSelected == "18") childInput[childInput.length]=new Option("Illinois",120);
					 
						
						
							
						
						if (FatherSelected == "10") childInput[childInput.length]=new Option("Valparaiso",172);
					 
						
						
							
						
						if (FatherSelected == "29") childInput[childInput.length]=new Option("Guanajuato",186);
					 
						
						
							
						
						if (FatherSelected == "11") childInput[childInput.length]=new Option("Neiva",221);
					 
						
						
							
						
						if (FatherSelected == "46") childInput[childInput.length]=new Option("Monagas",244);
					 
						
						
							
						
						if (FatherSelected == "1") childInput[childInput.length]=new Option("Sachsen",269);
					 
						
						
							
						
						if (FatherSelected == "37") childInput[childInput.length]=new Option("Ribatejo",286);
					 
						
						
							
						
						if (FatherSelected == "20") childInput[childInput.length]=new Option("Languedoc - Roussillon",301);
					 
						
						
							
						
						if (FatherSelected == "44") childInput[childInput.length]=new Option("Neuenburg",324);
					 
						
						
							
						
						if (FatherSelected == "39") childInput[childInput.length]=new Option("West Midlands",351);
					 
						
						
							
						
						if (FatherSelected == "26") childInput[childInput.length]=new Option("Puglia",376);
					 
						
						
							
						
						if (FatherSelected == "14") childInput[childInput.length]=new Option("Vejle Amt",397);
					 
						
						
							
						
						if (FatherSelected == "43") childInput[childInput.length]=new Option("Södermanlands län",420);
					 
						
						
							
						
						if (FatherSelected == "31") childInput[childInput.length]=new Option("Sør - Trøndelag",442);
					 
						
						
							
						
						if (FatherSelected == "17") childInput[childInput.length]=new Option("Castellón/Castelló",14);
					 
						
						
							
						
						if (FatherSelected == "3") childInput[childInput.length]=new Option("Misiones",68);
					 
						
						
							
						
						if (FatherSelected == "7") childInput[childInput.length]=new Option("Pará",93);
					 
						
						
							
						
						if (FatherSelected == "18") childInput[childInput.length]=new Option("Indiana",121);
					 
						
						
							
						
						if (FatherSelected == "29") childInput[childInput.length]=new Option("Guerrero",187);
					 
						
						
							
						
						if (FatherSelected == "11") childInput[childInput.length]=new Option("Pasto",222);
					 
						
						
							
						
						if (FatherSelected == "46") childInput[childInput.length]=new Option("Mérida",245);
					 
						
						
							
						
						if (FatherSelected == "1") childInput[childInput.length]=new Option("Sachsen - Anhalt",270);
					 
						
						
							
						
						if (FatherSelected == "37") childInput[childInput.length]=new Option("Tras-os-Montes",287);
					 
						
						
							
						
						if (FatherSelected == "20") childInput[childInput.length]=new Option("Limousin",302);
					 
						
						
							
						
						if (FatherSelected == "44") childInput[childInput.length]=new Option("Nidwalden",325);
					 
						
						
							
						
						if (FatherSelected == "39") childInput[childInput.length]=new Option("Yorkshire",352);
					 
						
						
							
						
						if (FatherSelected == "26") childInput[childInput.length]=new Option("Sardegna",377);
					 
						
						
							
						
						if (FatherSelected == "14") childInput[childInput.length]=new Option("Vestsjællands Amt",398);
					 
						
						
							
						
						if (FatherSelected == "43") childInput[childInput.length]=new Option("Uppsala län",421);
					 
						
						
							
						
						if (FatherSelected == "31") childInput[childInput.length]=new Option("Telemark",443);
					 
						
						
							
						
						if (FatherSelected == "17") childInput[childInput.length]=new Option("Ceuta",15);
					 
						
						
							
						
						if (FatherSelected == "3") childInput[childInput.length]=new Option("Neuquén",69);
					 
						
						
							
						
						if (FatherSelected == "7") childInput[childInput.length]=new Option("Paraíba",94);
					 
						
						
							
						
						if (FatherSelected == "18") childInput[childInput.length]=new Option("Iowa",122);
					 
						
						
							
						
						if (FatherSelected == "29") childInput[childInput.length]=new Option("Hidalgo",188);
					 
						
						
							
						
						if (FatherSelected == "11") childInput[childInput.length]=new Option("Pereira",223);
					 
						
						
							
						
						if (FatherSelected == "46") childInput[childInput.length]=new Option("Nueva Esparta",246);
					 
						
						
							
						
						if (FatherSelected == "1") childInput[childInput.length]=new Option("Schleswig - Holstein",271);
					 
						
						
							
						
						if (FatherSelected == "20") childInput[childInput.length]=new Option("Lorraine",303);
					 
						
						
							
						
						if (FatherSelected == "44") childInput[childInput.length]=new Option("Obwalden",326);
					 
						
						
							
						
						if (FatherSelected == "26") childInput[childInput.length]=new Option("Sicilia",378);
					 
						
						
							
						
						if (FatherSelected == "14") childInput[childInput.length]=new Option("Viborg Amt",399);
					 
						
						
							
						
						if (FatherSelected == "43") childInput[childInput.length]=new Option("Värmlands län",422);
					 
						
						
							
						
						if (FatherSelected == "31") childInput[childInput.length]=new Option("Troms",444);
					 
						
						
							
						
						if (FatherSelected == "17") childInput[childInput.length]=new Option("Ciudad Real",16);
					 
						
						
							
						
						if (FatherSelected == "3") childInput[childInput.length]=new Option("Río Negro",70);
					 
						
						
							
						
						if (FatherSelected == "7") childInput[childInput.length]=new Option("Paraná",95);
					 
						
						
							
						
						if (FatherSelected == "18") childInput[childInput.length]=new Option("Kansas",123);
					 
						
						
							
						
						if (FatherSelected == "29") childInput[childInput.length]=new Option("Jalisco",189);
					 
						
						
							
						
						if (FatherSelected == "11") childInput[childInput.length]=new Option("Popayán",224);
					 
						
						
							
						
						if (FatherSelected == "46") childInput[childInput.length]=new Option("Portuguesa",247);
					 
						
						
							
						
						if (FatherSelected == "1") childInput[childInput.length]=new Option("Thüringen",272);
					 
						
						
							
						
						if (FatherSelected == "20") childInput[childInput.length]=new Option("Midi - Pyrénées",304);
					 
						
						
							
						
						if (FatherSelected == "44") childInput[childInput.length]=new Option("St. Gallen",327);
					 
						
						
							
						
						if (FatherSelected == "26") childInput[childInput.length]=new Option("Toscana",379);
					 
						
						
							
						
						if (FatherSelected == "14") childInput[childInput.length]=new Option("Århus Amt",400);
					 
						
						
							
						
						if (FatherSelected == "43") childInput[childInput.length]=new Option("Värstenbottens län",423);
					 
						
						
							
						
						if (FatherSelected == "31") childInput[childInput.length]=new Option("Vest Agder",445);
					 
						
						
							
						
						if (FatherSelected == "17") childInput[childInput.length]=new Option("Córdoba",17);
					 
						
						
							
						
						if (FatherSelected == "3") childInput[childInput.length]=new Option("Salta",71);
					 
						
						
							
						
						if (FatherSelected == "7") childInput[childInput.length]=new Option("Pernambuco",96);
					 
						
						
							
						
						if (FatherSelected == "18") childInput[childInput.length]=new Option("Kentucky",124);
					 
						
						
							
						
						if (FatherSelected == "29") childInput[childInput.length]=new Option("Michoacán",190);
					 
						
						
							
						
						if (FatherSelected == "11") childInput[childInput.length]=new Option("Santa Marta",225);
					 
						
						
							
						
						if (FatherSelected == "46") childInput[childInput.length]=new Option("Sucre",248);
					 
						
						
							
						
						if (FatherSelected == "20") childInput[childInput.length]=new Option("Nord Pas de Calais",305);
					 
						
						
							
						
						if (FatherSelected == "44") childInput[childInput.length]=new Option("Solothurn",328);
					 
						
						
							
						
						if (FatherSelected == "26") childInput[childInput.length]=new Option("Trentino - Alto Adige",380);
					 
						
						
							
						
						if (FatherSelected == "43") childInput[childInput.length]=new Option("Värsternorrlands län",424);
					 
						
						
							
						
						if (FatherSelected == "31") childInput[childInput.length]=new Option("Vestfold",446);
					 
						
						
							
						
						if (FatherSelected == "17") childInput[childInput.length]=new Option("Cuenca",18);
					 
						
						
							
						
						if (FatherSelected == "3") childInput[childInput.length]=new Option("San Juan",72);
					 
						
						
							
						
						if (FatherSelected == "7") childInput[childInput.length]=new Option("Piauí",97);
					 
						
						
							
						
						if (FatherSelected == "18") childInput[childInput.length]=new Option("Louisiana",125);
					 
						
						
							
						
						if (FatherSelected == "11") childInput[childInput.length]=new Option("Sincelejo",226);
					 
						
						
							
						
						if (FatherSelected == "46") childInput[childInput.length]=new Option("Trujillo",249);
					 
						
						
							
						
						if (FatherSelected == "20") childInput[childInput.length]=new Option("Pays de la Loire",306);
					 
						
						
							
						
						if (FatherSelected == "44") childInput[childInput.length]=new Option("Schwyz",329);
					 
						
						
							
						
						if (FatherSelected == "26") childInput[childInput.length]=new Option("Umbria",381);
					 
						
						
							
						
						if (FatherSelected == "43") childInput[childInput.length]=new Option("Västmanlands län",425);
					 
						
						
							
						
						if (FatherSelected == "31") childInput[childInput.length]=new Option("Østfold",447);
					 
						
						
							
						
						if (FatherSelected == "17") childInput[childInput.length]=new Option("Girona",19);
					 
						
						
							
						
						if (FatherSelected == "3") childInput[childInput.length]=new Option("San Luís",73);
					 
						
						
							
						

						if (FatherSelected == "7") childInput[childInput.length]=new Option("Rio de Janeiro",98);
					 
						
						
							
						
						if (FatherSelected == "18") childInput[childInput.length]=new Option("Maine",126);
					 
						
						
							
						
						if (FatherSelected == "29") childInput[childInput.length]=new Option("Morelos",192);
					 
						
						
							
						
						if (FatherSelected == "11") childInput[childInput.length]=new Option("Tunja",227);
					 
						
						
							
						
						if (FatherSelected == "46") childInput[childInput.length]=new Option("Táchira",250);
					 
						
						
							
						
						if (FatherSelected == "20") childInput[childInput.length]=new Option("Picardie",307);
					 
						
						
							
						
						if (FatherSelected == "44") childInput[childInput.length]=new Option("Thurgau",330);
					 
						
						
							
						
						if (FatherSelected == "26") childInput[childInput.length]=new Option("Valle d\u0027Aosta",382);
					 
						
						
							
						
						if (FatherSelected == "43") childInput[childInput.length]=new Option("Västra Götalands län",426);
					 
						
						
							
						
						if (FatherSelected == "17") childInput[childInput.length]=new Option("Granada",21);
					 
						
						
							
						
						if (FatherSelected == "3") childInput[childInput.length]=new Option("Santa Cruz",74);
					 
						
						
							
						
						if (FatherSelected == "7") childInput[childInput.length]=new Option("Rio Grande do Norte",99);
					 
						
						
							
						
						if (FatherSelected == "18") childInput[childInput.length]=new Option("Maryland",127);
					 
						
						
							
						
						if (FatherSelected == "29") childInput[childInput.length]=new Option("Nayarit",193);
					 
						
						
							
						
						if (FatherSelected == "11") childInput[childInput.length]=new Option("Valledupar",228);
					 
						
						
							
						
						if (FatherSelected == "46") childInput[childInput.length]=new Option("Vargas",251);
					 
						
						
							
						
						if (FatherSelected == "20") childInput[childInput.length]=new Option("Poitou - Charentes",308);
					 
						
						
							
						
						if (FatherSelected == "44") childInput[childInput.length]=new Option("Tessin",331);
					 
						
						
							
						
						if (FatherSelected == "26") childInput[childInput.length]=new Option("Veneto",383);
					 
						
						
							
						
						if (FatherSelected == "43") childInput[childInput.length]=new Option("Örebro län",427);
					 
						
						
							
						
						if (FatherSelected == "17") childInput[childInput.length]=new Option("Guadalajara",22);
					 
						
						
							
						
						if (FatherSelected == "3") childInput[childInput.length]=new Option("Santa Fe",75);
					 
						
						
							
						
						if (FatherSelected == "7") childInput[childInput.length]=new Option("Rio Grande do Sul",100);
					 
						
						
							
						
						if (FatherSelected == "18") childInput[childInput.length]=new Option("Massachusetts",128);
					 
						
						
							
						
						if (FatherSelected == "29") childInput[childInput.length]=new Option("Nuevo León",194);
					 
						
						
							
						
						if (FatherSelected == "11") childInput[childInput.length]=new Option("Villavicencio",229);
					 
						
						
							
						
						if (FatherSelected == "46") childInput[childInput.length]=new Option("Yaracuy",252);
					 
						
						
							
						
						if (FatherSelected == "20") childInput[childInput.length]=new Option("Provence - Alpes - Côte d\u0027Azur",309);
					 
						
						
							
						
						if (FatherSelected == "44") childInput[childInput.length]=new Option("Uri",332);
					 
						
						
							
						
						if (FatherSelected == "43") childInput[childInput.length]=new Option("Östergötlands län",428);
					 
						
						
							
						
						if (FatherSelected == "17") childInput[childInput.length]=new Option("Guipúzcoa",23);
					 
						
						
							
						
						if (FatherSelected == "3") childInput[childInput.length]=new Option("Santiago del Estero",76);
					 
						
						
							
						
						if (FatherSelected == "7") childInput[childInput.length]=new Option("Rondonia",101);
					 
						
						
							
						
						if (FatherSelected == "18") childInput[childInput.length]=new Option("Michigan",129);
					 
						
						
							
						
						if (FatherSelected == "29") childInput[childInput.length]=new Option("Oaxaca",195);
					 
						
						
							
						
						if (FatherSelected == "11") childInput[childInput.length]=new Option("Yumbo",230);
					 
						
						
							
						
						if (FatherSelected == "46") childInput[childInput.length]=new Option("Zulia",253);
					 
						
						
							
						
						if (FatherSelected == "20") childInput[childInput.length]=new Option("Rhône Alpes",310);
					 
						
						
							
						
						if (FatherSelected == "44") childInput[childInput.length]=new Option("Waadt",333);
					 
						
						
							
						
						if (FatherSelected == "17") childInput[childInput.length]=new Option("Huelva",24);
					 
						
						
							
						
						if (FatherSelected == "3") childInput[childInput.length]=new Option("Tierra del Fuego",77);
					 
						
						
							
						
						if (FatherSelected == "7") childInput[childInput.length]=new Option("Roraina",102);
					 
						
						
							
						
						if (FatherSelected == "18") childInput[childInput.length]=new Option("Minnesota",130);
					 
						
						
							
						
						if (FatherSelected == "29") childInput[childInput.length]=new Option("Puebla",196);
					 
						
						
							
						
						if (FatherSelected == "44") childInput[childInput.length]=new Option("Wallis",334);
					 
						
						
							
						
						if (FatherSelected == "17") childInput[childInput.length]=new Option("Huesca",25);
					 
						
						
							
						
						if (FatherSelected == "3") childInput[childInput.length]=new Option("Tucumán",78);
					 
						
						
							
						
						if (FatherSelected == "7") childInput[childInput.length]=new Option("Santa Catarina",103);
					 
						
						
							
						
						if (FatherSelected == "18") childInput[childInput.length]=new Option("Mississippi",131);
					 
						
						
							
						
						if (FatherSelected == "29") childInput[childInput.length]=new Option("Querétaro",197);
					 
						
						
							
						
						if (FatherSelected == "44") childInput[childInput.length]=new Option("Zug",335);
					 
						
						
							
						
						if (FatherSelected == "17") childInput[childInput.length]=new Option("Illes Balears",26);
					 
						
						
							
						
						if (FatherSelected == "7") childInput[childInput.length]=new Option("Sergipe",104);
					 
						
						
							
						
						if (FatherSelected == "18") childInput[childInput.length]=new Option("Missouri",132);
					 
						
						
							
						
						if (FatherSelected == "29") childInput[childInput.length]=new Option("Quintana Roo",198);
					 
						
						
							
						
						if (FatherSelected == "44") childInput[childInput.length]=new Option("Zürich",336);
					 
						
						
							
						
						if (FatherSelected == "17") childInput[childInput.length]=new Option("Jaén",27);
					 
						
						
							
						
						if (FatherSelected == "7") childInput[childInput.length]=new Option("Sao Paulo",105);
					 
						
						
							
						
						if (FatherSelected == "18") childInput[childInput.length]=new Option("Montana",133);
					 
						
						
							
						
						if (FatherSelected == "29") childInput[childInput.length]=new Option("San Luís Potosí",199);
					 
						
						
							
						
						if (FatherSelected == "44") childInput[childInput.length]=new Option("Schaffhausen",337);
					 
						
						
							
						
						if (FatherSelected == "17") childInput[childInput.length]=new Option("La Rioja",29);
					 
						
						
							
						
						if (FatherSelected == "7") childInput[childInput.length]=new Option("Tocantins",106);
					 
						
						
							
						
						if (FatherSelected == "18") childInput[childInput.length]=new Option("Nebraska",134);
					 
						
						
							
						
						if (FatherSelected == "29") childInput[childInput.length]=new Option("Sinaloa",200);
					 
						
						
							
						
						if (FatherSelected == "17") childInput[childInput.length]=new Option("Las Palmas",20);
					 
						
						
							
						
						if (FatherSelected == "18") childInput[childInput.length]=new Option("Nevada",135);
					 
						
						
							
						
						if (FatherSelected == "29") childInput[childInput.length]=new Option("Sonora",201);
					 
						
						
							
						
						if (FatherSelected == "17") childInput[childInput.length]=new Option("León",30);
					 
						
						
							
						
						if (FatherSelected == "18") childInput[childInput.length]=new Option("New Hampshire",136);
					 
						
						
							
						
						if (FatherSelected == "29") childInput[childInput.length]=new Option("Tabasco",202);
					 
						
						
							
						
						if (FatherSelected == "17") childInput[childInput.length]=new Option("Lleida",31);
					 
						
						
							
						
						if (FatherSelected == "18") childInput[childInput.length]=new Option("New Jersey",137);
					 
						
						
							
						
						if (FatherSelected == "29") childInput[childInput.length]=new Option("Tamaulipas",203);
					 
						
						
							
						
						if (FatherSelected == "17") childInput[childInput.length]=new Option("Lugo",32);
					 
						
						
							
						
						if (FatherSelected == "18") childInput[childInput.length]=new Option("New Mexico",138);
					 
						
						
							
						
						if (FatherSelected == "29") childInput[childInput.length]=new Option("Tlaxcala",204);
					 
						
						
							
						
						if (FatherSelected == "17") childInput[childInput.length]=new Option("Madrid",33);
					 
						
						
							
						
						if (FatherSelected == "18") childInput[childInput.length]=new Option("New York",139);
					 
						
						
							
						
						if (FatherSelected == "29") childInput[childInput.length]=new Option("Veracruz",205);
					 
						
						
							
						
						if (FatherSelected == "17") childInput[childInput.length]=new Option("Málaga",34);
					 
						
						
							
						
						if (FatherSelected == "18") childInput[childInput.length]=new Option("North Carolina",140);
					 
						
						
							
						
						if (FatherSelected == "29") childInput[childInput.length]=new Option("Yucatán",206);
					 
						
						
							
						
						if (FatherSelected == "17") childInput[childInput.length]=new Option("Melilla",35);
					 
						
						
							
						
						if (FatherSelected == "18") childInput[childInput.length]=new Option("North Dakota",141);
					 
						
						
							
						
						if (FatherSelected == "29") childInput[childInput.length]=new Option("Zacatecas",207);
					 
						
						
							
						
						if (FatherSelected == "17") childInput[childInput.length]=new Option("Murcia",36);
					 
						
						
							
						
						if (FatherSelected == "18") childInput[childInput.length]=new Option("Ohio",142);
					 
						
						
							
						
						if (FatherSelected == "17") childInput[childInput.length]=new Option("Navarra",37);
					 
						
						
							
						
						if (FatherSelected == "18") childInput[childInput.length]=new Option("Oklahoma",143);
					 
						
						
							
						
						if (FatherSelected == "17") childInput[childInput.length]=new Option("Ourense",38);
					 
						
						
							
						
						if (FatherSelected == "18") childInput[childInput.length]=new Option("Oregon",144);
					 
						
						
							
						
						if (FatherSelected == "17") childInput[childInput.length]=new Option("Palencia",39);
					 
						
						
							
						
						if (FatherSelected == "18") childInput[childInput.length]=new Option("Pennsylvania",145);
					 
						
						
							
						
						if (FatherSelected == "17") childInput[childInput.length]=new Option("Pontevedra",40);
					 
						
						
							
						
						if (FatherSelected == "18") childInput[childInput.length]=new Option("Rhode Island",146);
					 
						
						
							
						
						if (FatherSelected == "17") childInput[childInput.length]=new Option("Salamanca",41);
					 
						
						
							
						
						if (FatherSelected == "18") childInput[childInput.length]=new Option("South Carolina",147);
					 
						
						
							
						
						if (FatherSelected == "17") childInput[childInput.length]=new Option("Santa Cruz de Tenerife",46);
					 
						
						
							
						
						if (FatherSelected == "18") childInput[childInput.length]=new Option("South Dakota",148);
					 
						
						
							
						
						if (FatherSelected == "17") childInput[childInput.length]=new Option("Segovia",42);
					 
						
						
							
						
						if (FatherSelected == "18") childInput[childInput.length]=new Option("Tennessee",149);
					 
						
						
							
						
						if (FatherSelected == "17") childInput[childInput.length]=new Option("Sevilla",43);
					 
						
						
							
						
						if (FatherSelected == "18") childInput[childInput.length]=new Option("Texas",150);
					 
						
						
							
						
						if (FatherSelected == "17") childInput[childInput.length]=new Option("Soria",44);
					 
						
						
							
						
						if (FatherSelected == "18") childInput[childInput.length]=new Option("Utah",151);
					 
						
						
							
						
						if (FatherSelected == "17") childInput[childInput.length]=new Option("Tarragona",45);
					 
						
						
							
						
						if (FatherSelected == "18") childInput[childInput.length]=new Option("Vermont",152);
					 
						
						
							
						
						if (FatherSelected == "17") childInput[childInput.length]=new Option("Teruel",47);
					 
						
						
							
						
						if (FatherSelected == "18") childInput[childInput.length]=new Option("Virginia",153);
					 
						
						
							
						
						if (FatherSelected == "17") childInput[childInput.length]=new Option("Toledo",48);
					 
						
						
							
						
						if (FatherSelected == "18") childInput[childInput.length]=new Option("Washington",154);
					 
						
						
							
						
						if (FatherSelected == "17") childInput[childInput.length]=new Option("Valencia/València",49);
					 
						
						
							
						
						if (FatherSelected == "18") childInput[childInput.length]=new Option("Washington, D.C.",155);
					 
						
						
							
						
						if (FatherSelected == "17") childInput[childInput.length]=new Option("Valladolid",50);
					 
						
						
							
						
						if (FatherSelected == "18") childInput[childInput.length]=new Option("West Virginia",156);
					 
						
						
							
						
						if (FatherSelected == "17") childInput[childInput.length]=new Option("Vizcaya",51);
					 
						
						
							
						
						if (FatherSelected == "18") childInput[childInput.length]=new Option("Wisconsin",157);
					 
						
						
							
						
						if (FatherSelected == "17") childInput[childInput.length]=new Option("Zamora",52);
					 
						
						
							
						
						if (FatherSelected == "18") childInput[childInput.length]=new Option("Wyoming",158);
					 
						
						
							
						
						if (FatherSelected == "17") childInput[childInput.length]=new Option("Zaragoza",53);
					 
						
						
							
						
						if (FatherSelected == "65") childInput[childInput.length]=new Option("Chipre",559);
					 
						
						
							
						
						if (FatherSelected == "66") childInput[childInput.length]=new Option("Eslovenia",561);
					 
						
						
							
						
						if (FatherSelected == "68") childInput[childInput.length]=new Option("Letonia",563);
					 
						
						
							
						
						if (FatherSelected == "69") childInput[childInput.length]=new Option("Lituania",565);
					 
						
						
							
						
						if (FatherSelected == "70") childInput[childInput.length]=new Option("Malta",567);
					 
						
						
							
						
						if (FatherSelected == "71") childInput[childInput.length]=new Option("República Eslovaca",569);
					 
						
						
							
						
						if (FatherSelected == "67") childInput[childInput.length]=new Option("Estonia",571);
					
				}
				
				
				function changeVisibilityBlockSubcategorias(){
					inputAlertaCategoria=document.myForm.sAlertaCategoria;
					if (inputAlertaCategoria.options[inputAlertaCategoria.selectedIndex].value <	 1){
						document.getElementById("div_subcategoria").style.display = "none";
					}
					else {
						document.getElementById("div_subcategoria").style.display = "";
					}
				}
ns_loadingtime1=(new Date()).getTime()
<!-- End Sitestat4 Loadingtime1 code -->



function initialize() {
						var oForm=document.myForm;
						oForm.sNombre.value="jose";
						oForm.sApellido1.value="jimenez";
						oForm.sApellido2.value="";
						
						
						
							
							
							
							
							
								
									
								
								oForm.Naix_Dies.value='23';
							
							
								
									
								
								oForm.Naix_Mes.value = '03';
							
							
								
									oForm.Naix_Any.value='1987';
								
							
						
						
						
						
						radio_sel(oForm.iTipoDocumento,"1");
						CambiaTipoDocumento();
					
						
							oForm.sDNI.value="";
						
						
						pulldown_sel(oForm.iPais,"0");
						relacio(oForm.iPais,oForm.iProvincia);
						pulldown_sel(oForm.iProvincia,"-2147483648");
						oForm.sPoblacion.value= "";
						oForm.sCodigoPostal.value="";
						oForm.sDireccion.value="";

						radio_sel(oForm.iTlfPreferente,"2");
						CambiaObigatorioTelefono();

						oForm.sTlfMovil.value="654763456";
						oForm.sTlfFijo.value="";
						oForm.sTlfInternacional.value="";
						oForm.sWeb.value = "";
						oForm.sDatosAdicionales.value="";

						
						

						
						
						
						
						pulldown_sel(oForm.sPermisoConducir,"");	
						
						
						radio_sel(oForm.sVehiculoPropio,"0");
						radio_sel(oForm.sAutonomo,"0");

						
						
						
						
						pulldown_sel(oForm.c_permiso_trabajo_origen,"");
						AddItemsToList(myForm.c_permiso_trabajo_origen,myForm.ai_c_permiso_trabajo,'');

						// unselect all permisos de trabajo y scroll arriba
						unsel_all_list(oForm.c_permiso_trabajo_origen);
						oForm.c_permiso_trabajo_origen.options[0].selected=true;
						oForm.c_permiso_trabajo_origen.options[0].selected=false;

						pulldown_sel(oForm.as_c_nacionalidad_lista,"");	
						
						oForm.sCursandoPermiso.value="";

						
						
							
																	
							
							pulldown_sel(oForm.iPais,17);
							relacio(oForm.iPais,oForm.iProvincia);
							RsiP(oForm.iPais,oForm.iProvincia);
							
								pulldown_sel(oForm.as_c_nacionalidad_lista,"17");
							
						
						oForm.sNombre.focus();
					} // function Initialize()
					
/*ALERTA ERROR*/					
function showAlertaError(){var A=document.getElementById("alertaError");if(A){A.style.display="";var B=new String(document.location).indexOf("#dummy");if(B!=-1){document.location=new String(document.location).substring(0,B)+"#alertaLink"}else{if(new String(document.location).indexOf("#alertaLink")==-1){document.location=document.location+"#alertaLink"}}}}var highlightedInputs=new Object();function resetAlertaError(){var B=new String(document.location).indexOf("#alertaLink");if(B!=-1){document.location=new String(document.location).substring(0,B)+"#dummy"}hideDiv("alertaCorrecto");var A=document.getElementById("alertaError");if(A){A.style.display="none";hideDiv("alertaErrorDatos");hideDiv("alertaErrorCampos");var D=document.getElementById("AlertasLista");if(D){D.innerHTML="";for(var C in highlightedInputs){someInput=highlightedInputs[C];if(someInput.type=="text"||someInput.type=="password"||someInput.type=="textarea"){someInput.className="";if(someInput.parentNode.tagName=="LABEL"){someInput.parentNode.className=""}}else{if(someInput.parentNode!=null){if(document.getElementById("portal")){document.getElementById("portal").className="options"}someInput.parentNode.className="options";setLabelClass(someInput,"")}}}highlightedInputs=new Object()}hideDiv("alertasLista")}}function addErrorMessage(A,E){var D=document.getElementById("AlertasLista");var C=false;if(D){if(arguments.length>1&&E!=null){if(E.length>0){D.innerHTML=D.innerHTML+"<li>"+E+"</li>"}showDiv("AlertasLista");showAlertaError()}if(A!=null&&F!="undefined"){if(A.length==null||A.tagName=="SELECT"){var G=A;A=new Array(1);A[1]=G}for(var B=0;B<A.length;B++){var F=A[B];if(F!=null&&F!="undefined"){if(F.type=="text"||F.type=="password"||F.type=="textarea"){F.className="InputError";setLabelClass(F,"EtiquetaFormError")}else{if(F.parentNode.tagName=="SPAN"||F.parentNode.tagName=="DIV"){F.parentNode.className="options InputError";setLabelClass(F,"EtiquetaFormError")}}showDiv("alertaErrorCampos");hideDiv("alertaErrorDatos");C=true;highlightedInputs[F.name]=F}}}if(!C){showDiv("alertaErrorDatos")}hideDiv("alertaAviso");hideDiv("alertaCorrecto")}else{if(arguments.length>1&&E!=null){alert(E)}}}function addSuccessMessage(A){resetAlertaError();var B=document.getElementById("alertaCorrectoTexto");if(B){B.innerHTML=B.innerHTML+A;showDiv("alertaCorrecto");hideDiv("alertaError");hideDiv("alertaAviso")}else{alert(A)}}function addInfoMessage(B){resetAlertaError();var C=document.getElementById("alertaAvisoTexto");var A="";if(C){A=C.innerHTML;if(A=="&nbsp;"){A=""}C.innerHTML=A+B;showDiv("alertaAviso");hideDiv("alertaError");hideDiv("alertaCorrecto")}else{alert(B)}}function setLabelClass(A,C){if(!setLabelClassUsingParents(A,C)){var B=document.getElementById(A.name+"_LABEL");if(B!=null){B.className=C}}}function setLabelClassUsingParents(A,B){if(A!=null){if(A.tagName=="LABEL"){A.className=B;return true}else{return setLabelClassUsingParents(A.parentNode,B)}}return false}function hideDiv(A){var B=document.getElementById(A);if(B){B.style.display="none"}}function showDiv(A){var B=document.getElementById(A);if(B){B.style.display=""}};

/*ALERTA MENSAJES*/
var alertaMsg=new 
Object();alertaMsg.CAMPOS_DISTINTOS="''[param_1]'' y ''[param_2]'' deben ser iguales.";alertaMsg.MIN_CHARS="''[param_1]'' debe tener un mínimo de [param_2] caracteres.";alertaMsg.NO_VACIO="''[param_1]'' es obligatorio.";alertaMsg.MAX_CHARS="''[param_1]'' sólo puede tener un máximo de [param_2] caracteres.";alertaMsg["EMAIL_INVALIDO_@"]="El e-mail que has introducido es incorrecto.";alertaMsg.EMAIL_USUARIO_CHARS_INVALIDOS="El e-mail que has introducido es incorrecto.";alertaMsg.EMAIL_DOMINIO_INVALIDO="El e-mail que has introducido es incorrecto.";alertaMsg.EMAIL_="El e-mail que has introducido es incorrecto.";alertaMsg.EMAIL_USUARIO_INVALIDO="El e-mail que has introducido es incorrecto.";alertaMsg.EMAIL_IP_INVALIDO="El e-mail que has introducido es incorrecto.";alertaMsg.DOMINIO_INVALIDO="El e-mail que has introducido es incorrecto.";alertaMsg.EMAIL_DOMINIO_CORTO="El e-mail que has introducido es incorrecto.";alertaMsg.EMAIL_DOMINIO_FALTA="El e-mail que has introducido es incorrecto.";alertaMsg.EMAIL_INVALIDO="El e-mail que has introducido es incorrecto.";alertaMsg.FALTA_SPEC_EN_CAMPO="Debes seleccionar una opción en ''[param_1]''.";alertaMsg.SEL_VALOR_EN_CAMPO="Debes seleccionar una opción en ''[param_1]''";alertaMsg.OPCION_INVALIDA_SALARIOS="Has elegido una opción no válida en los campos de salario.";alertaMsg.SALARIOS_TIPOS_DIFERENTES="Debes escoger dos salarios del mismo tipo.";alertaMsg.SALARIO_MAX_MENOR="El salario máximo debe ser mayor o igual que el salario mínimo.";alertaMsg.CV_DATOS_PERSONALES_NOM="Para garantizar tu privacidad, no puedes introducir tu nombre y apellidos en el currículum en texto.";alertaMsg.CV_DATOS_PERSONALES_TEL="Para garantizar tu privacidad, no puedes introducir teléfonos de contacto en tu currículum en texto.";alertaMsg.CV_DATOS_PERSONALES_MAIL="Para garantizar tu privacidad, no puedes introducir tu e-mail en tu currículum en texto.";alertaMsg.SOLO_NUMEROS="''[param_1]'' sólo puede contener números.";alertaMsg.FALTA_OPCION="Debes seleccionar una opción en ''[param_1]''.";alertaMsg.SEL_ELEMENTOS_MAX="Sólo puedes seleccionar una máximo de [param_2] opciones en ''[param_1]''.";alertaMsg.URL_SIN_HTTP="La web debe empezar por http://";alertaMsg.PRIV_NORMAL_NO_OCULTAR="La opción que has seleccionado no te permite ocultar estos datos personales.";alertaMsg.PRIV_MAX_NO_VISIBLE="Con el nivel de privacidad seleccionado, tu currículum no será visto por las empresas cuando busquen en la base de datos.";alertaMsg.NO_VACIO2="Debes introducir un nombre para el archivo.";alertaMsg.SIN_PUNTO='No se puede introducir el carácter "." en el nombre del archivo';alertaMsg.UBICACION="Debes seleccionar la ubicación actual de los CV.";alertaMsg.CHARS_INVALIDOS='Debes introducir caracteres entre la A y la Z, números, el carácter "_" o el carácter "-".';alertaMsg[""]="";function addGlobalErrorMessage(A,E){var B=getMessageString(E);for(var D=2;D<arguments.length;D++){var C=new RegExp("\\[param_"+(D-1)+"]");B=B.replace(C,arguments[D])}addErrorMessage(A,B)}function getMessageString(A){return alertaMsg[A]};

/*CAMPOS IGUALES*/

function campos_iguales(B,F,A,E,G,H){if(typeof (H)=="undefined"){H=true}if(H){var D="CAMPOS_DISTINTOS"}else{var D=""}if(B.value!=A.value){var C=new Array();C[0]=B;C[1]=A;addGlobalErrorMessage(C,D,F,E);if(arguments.length==4||G){B.value="";A.value=""}return false}return true};

/*ALERTA MAIL*/

function mail(G,J){if(typeof (J)=="undefined"){J=true}var B=G.value;var S=1;var R=/^(.+)@(.+)$/;var P='\\(\\)><@,;:\\\\\\"\\.\\[\\]';var K="[^\\s"+P+"]";var D='("[^"]*")';var Q=/^\[(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})\]$/;var A=K+"+";var O="("+A+"|"+D+")";var L=new RegExp("^"+O+"(\\."+O+")*$");var F=new RegExp("^"+A+"(\\."+A+")*$");var C=B.match(R);if(C==null){addGlobalErrorMessage(G,J?"EMAIL_INVALIDO_@":"");return false}var T=C[1];var U=C[2];var M=0;for(M=0;M<T.length;M++){if(T.charCodeAt(M)>127){addGlobalErrorMessage(G,J?"EMAIL_USUARIO_CHARS_INVALIDOS":"");return false}}for(M=0;M<U.length;M++){if(U.charCodeAt(M)>127){addGlobalErrorMessage(G,J?"EMAIL_DOMINIO_INVALIDO":"");return false}}if(T.match(L)==null){addGlobalErrorMessage(G,J?"EMAIL_USUARIO_INVALIDO":"");return false}var I=U.match(Q);if(I!=null){for(var M=1;M<=4;M++){if(I[M]>255){addGlobalErrorMessage(G,J?"EMAIL_IP_INVALIDO":"");return false}}return true}var H=new RegExp("^"+A+"$");var E=U.split(".");var N=E.length;for(M=0;M<N;M++){if(E[M].search(H)==-1){addGlobalErrorMessage(G,J?"DOMINIO_INVALIDO":"");return false}}var H=new RegExp(A,"g");var E=U.match(H);var N=E.length;if(E[E.length-1].length<2||E[E.length-1].length>6){addGlobalErrorMessage(G,J?"EMAIL_DOMINIO_CORTO":"");return false}if(N<2){addGlobalErrorMessage(G,J?"EMAIL_DOMINIO_FALTA":"");return false}return true};

/*FUNCION LONGITUD*/

function longitud(B,F,C,A,E){if(typeof (E)=="undefined"){E=true}var D=longitudReal(B.value);if(D<C){if(C>1){addGlobalErrorMessage(B,E?"MIN_CHARS":"",F,C)}else{addGlobalErrorMessage(B,E?"NO_VACIO":"",F)}return false}if(D>A){diferencia=D-A;addGlobalErrorMessage(B,E?"MAX_CHARS":"",F,A,diferencia);return false}if((C==-111)&&(D==0)){addGlobalErrorMessage(B,"NO_VACIO2");return false}return true}function longitudReal(C){var B=0;for(var A=0;A<C.length;++A){if(C.charCodeAt(A)==10&&(A==0||C.charCodeAt(A-1)!=13)){++B}++B}return B}function sinPunto(B){for(var A=0;A<B.value.length;A++){if(B.value.charAt(A)=="."){addGlobalErrorMessage(B,"SIN_PUNTO");return false}}return true}function sinCaracteresEspeciales(C){var A=0;var D="";for(var B=0;B<C.value.length;B++){A=C.value.charCodeAt(B);D=C.value.charAt(B);if((A<48||A>122||(A>90&&A<97)||(A>57&&A<65))&&D!="_"&&D!="-"){addGlobalErrorMessage(C,"CHARS_INVALIDOS");return false}}return true};

/*PULLDOWN*/

function pulldown(A,F,E){if(typeof (E)=="undefined"){E=true}if(E){var C="FALTA_SPEC_EN_CAMPO"}else{var C=""}if(A.options.length<=0){addGlobalErrorMessage(A,C,F);return false}else{if(A.options[0].value<1){A.options[0].selected=false;if(A.options[A.selectedIndex].value<=0){addGlobalErrorMessage(A,C,F);A.options[0].selected=true;return false}}else{var B=0;for(var D=0;D<A.length;D++){if(A.options[D].selected){B+=1}}if(B==0){addGlobalErrorMessage(A,C,F);return false}}}return true}function pulldownRandom(A,D,C){if(typeof (C)=="undefined"){C=true}if(C){var B="FALTA_SPEC_EN_CAMPO"}else{var B=""}if(A.options[A.selectedIndex].value<="0"){addGlobalErrorMessage(A,B,D);return false}return true};

/*ITEMS*/

function AddItemsToList(E,C,D){for(var B=0;B<E.length;B++){if((E.options[B].selected)&&(E.options[B].value>0)){bRepetido=false;for(var A=0;A<C.length;A++){if(E.options[B].value==C.options[A].value){bRepetido=true;break}}if(!bRepetido){C[C.length]=new Option(D+E[B].text,E[B].value)}}}}function AddSomeItemsToList(G,I,C,L,K){if(arguments.length<4){L=": "}if(arguments.length<5){K=false}var J=0;for(var E=0;E<G.length;E++){if((G.options[E].selected)&&(G.options[E].value>0)){J=E;break}}if(J>0){for(var E=0;E<I.length;E++){if(I.options[E].selected&&((!K&&I.options[E].value>0)||K)){var B=G.options[J].value+"#"+I.options[E].value;var D=G.options[J].value+"#0";if(K==true&&I.options[E].value<0){B=D}var A=0;for(var H=0;H<C.length;H++){if((B==C.options[H].value)||(C.options[H].value==D)){A=1;break}}if(A!=1){if(B==D){for(var H=C.length-1;H>=0;H--){prefijo=C.options[H].value;prefijo=prefijo.substring(0,prefijo.indexOf("#"));if(prefijo==G.options[J].value){C.options[H]=null}}}var F=G.options[J].text+L+I.options[E].text;C[C.length]=new Option(F,B)}}}}}function DelItemsToList(B){for(var A=0;A<B.length;A++){if(B.options[A].selected){B.options[A]=null;A--}}}function CleanItemsList(A,D){var C=0;if(arguments.length>1){C=D}for(var B=C;B<A.length;B++){A[B]=null}A.length=C}function SelectAllItemsList(A){for(var B=0;B<A.length;B++){A.options[B].selected=true}}function DeselectAllItemsList(A){for(var B=0;B<A.length;B++){A.options[B].selected=false}}function CountDistincPrefixList(E,D){var F=new Array();for(var C=0;C<E.length;C++){var G=E[C].text;iPosicionSeparador=G.indexOf(D,0);sPrefix=G.substring(0,iPosicionSeparador);var B=false;for(var A=0;A<F.length;A++){if(F[A]==sPrefix){B=true;break}}if(!B){F[F.length]=sPrefix}}return F.length}function CountDistincSuffixList(D,E){var F=new Array();for(var C=0;C<D.length;C++){var G=D[C].text;iPosicionSeparador=G.indexOf(E,0);sSuffix=G.substring(iPosicionSeparador,G.length);var B=false;for(var A=0;A<F.length;A++){if(F[A]==sSuffix){B=true;break}}if(!B){F[F.length]=sSuffix}}return F.length};

/*COUNT*/

function pulldown_count(A){var B=0;for(var C=0;C<A.length;C++){if(A.options[C].selected&&A.options[C].value>0){B+=1}}return B}function pulldown_countstr(A){var B=0;for(var C=0;C<A.length;C++){if(A.options[C].selected&&A.options[C].value>""){B+=1}}return B};

/*ES NUMERO*/

function esnumero(A,E,D){if(typeof (D)=="undefined"){D=true}if(D){var B="SOLO_NUMEROS"}else{var B=""}var C=/^[0-9]+$/;if(A.value.match(C)){return true}addGlobalErrorMessage(A,B,E);return false};

/*LOS SELECT*/

function pulldown_sel(D,B){var E=new String(B);var F=E.split(",");var G=D.options;for(var C=0;C<G.length;C++){for(var A=0;A<F.length;A++){if(G[C].value==F[A]){G[C].selected=true;break}}}};

/*TRIM*/

function trim(A){var B=A.value;var C=/^\s*(\w*)/gi;B=B.replace(C,"$1");C=/(\w*)\s*$/gi;B=B.replace(C,"$1");A.value=B};

/*DATE*/

function isDate(A,D,B){var C=new Date();D--;C.setDate(1);C.setFullYear(B);C.setMonth(D);C.setDate(A);if(C.getFullYear()<1900){return false}return C.getFullYear()==B&&C.getMonth()==D&&C.getDate()==A};


