<!--
  function cambia_zona(muni)
  	{
  		//rellenamos la lista de municipios en funcion del valor de la zona
 			//primero borramos la lista de municipios
  		if (document.getElementById('zona').selectedIndex>0)
  			{ 				
   				document.getElementById('municipio').length=0;
					document.getElementById('municipio').options[0]=new Option("");
					if (amunicipios[document.getElementById('zona').selectedIndex].length>0)
						{
							document.getElementById('municipio').options[0].value=0;
							document.getElementById('municipio').options[0].text='[Selecciona localidad]';
		  				for(var j=0;j<amunicipios[document.getElementById('zona').selectedIndex].length;j++)
		 		    		{  
		 		 					document.getElementById('municipio').options[j+1]=new Option();
		 		 					document.getElementById('municipio').options[j+1].value=amunicipios[document.getElementById('zona').selectedIndex][j][1];
		 		 					document.getElementById('municipio').options[j+1].text=amunicipios[document.getElementById('zona').selectedIndex][j][2];
		 		 					if (document.getElementById('municipio').options[j+1].value==muni)
		 		 						document.getElementById('municipio').options[j+1].selected=true;
		     		 		}
		     		}
		     	else
		     		{
							document.getElementById('municipio').options[0].value=0;
							document.getElementById('municipio').options[0].text='No se han encontrado localidades';
		     		}
				}
			else
				{
   				document.getElementById('municipio').length=0;
  				document.getElementById('municipio').options[0]=new Option("");
					document.getElementById('municipio').options[0].value=0;
					document.getElementById('municipio').options[0].text='[Selecciona zona]';
  			}
	  }

  function cambia_catalogo_zona(muni)
  	{
  		//rellenamos la lista de municipios en funcion del valor de la zona
 			//primero borramos la lista de municipios
  		if (document.getElementById('catalogo_zona').selectedIndex>0)
  			{  			
  				
   				document.getElementById('municipio').length=0;
					document.getElementById('municipio').options[0]=new Option("");
					if (amunicipios[document.getElementById('catalogo_zona').selectedIndex].length>0)
						{
							document.getElementById('municipio').options[0].value=0;
							document.getElementById('municipio').options[0].text='[Selecciona localidad]';
		  				for(var j=0;j<amunicipios[document.getElementById('catalogo_zona').selectedIndex].length;j++)
		 		    		{  
		 		 					document.getElementById('municipio').options[j+1]=new Option();
		 		 					document.getElementById('municipio').options[j+1].value=amunicipios[document.getElementById('catalogo_zona').selectedIndex][j][1];
		 		 					document.getElementById('municipio').options[j+1].text=amunicipios[document.getElementById('catalogo_zona').selectedIndex][j][2];
		 		 					if (document.getElementById('municipio').options[j+1].value==muni)
		 		 						document.getElementById('municipio').options[j+1].selected=true;
		     		 		}
		     		}
		     	else
		     		{
							document.getElementById('municipio').options[0].value=0;
							document.getElementById('municipio').options[0].text='No se han encontrado localidades';
		     		}
				}
			else
				{
   				document.getElementById('municipio').length=0;
  				document.getElementById('municipio').options[0]=new Option("");
					document.getElementById('municipio').options[0].value=0;
					document.getElementById('municipio').options[0].text='[Selecciona catálogo/zona]';
  			}
	  }

	 function mostrar_leyenda()
	 {
		var torigen=document.getElementById('enlace_leyenda').offsetTop + 18;
		
		if (document.all)
			document.getElementById('leyenda').style.top=torigen;
		else
			document.getElementById('leyenda').top=torigen;

		document.getElementById('leyenda').style.visibility='visible'; 	
		}

	 function ocultar_leyenda()
	 {
		document.getElementById('leyenda').style.visibility='hidden'; 	 	
		}

	 function mostrar_leyenda_busqueda()
	 {
			var torigen=document.getElementById('enlace_leyenda').offsetTop + 18;

			document.getElementById('leyenda').style.right=0;
			
			if (document.all)
				document.getElementById('leyenda').style.top=torigen;
			else
				document.getElementById('leyenda').top=torigen;
	
			document.getElementById('leyenda').style.visibility='visible'; 	
		}

	 function mostrar_localizacion()
	 {
		var torigen=document.getElementById('localizacion_alojamiento').offsetTop + 72;
		
		if (document.all)
			document.getElementById('plano_localizacion').style.top=torigen;
		else
			document.getElementById('plano_localizacion').top=torigen;

		document.getElementById('plano_localizacion').style.visibility='visible'; 	
		}

	 function ocultar_localizacion()
	 {
		document.getElementById('plano_localizacion').style.visibility='hidden'; 	 	
		}

	function limpia_fecha(campo)
		{
			if (campo.value== "dd/mm/aaaa")
				campo.value="";
		}

//-->
				

