/* verifica que solo haya un checkbox seleccionado para el buscador de interbusca */
function cambiaImagen(variable){
	eval("obj = document.getElementById('mapa')");
	if (variable == "1"){
		obj.src=hostTmp+"/images/tiempo/world-america-del-norte.gif";
	}else{
		if (variable == "2"){
			obj.src=hostTmp+"/images/tiempo/world-america-del-sur.gif";
		}else{
			if (variable == "3"){
				obj.src=hostTmp+"/images/tiempo/world-europa.gif";
			}else{
				if (variable == "4"){
					obj.src=hostTmp+"/images/tiempo/world-africa.gif";
				}else{
					if (variable == "5"){
						obj.src=hostTmp+"/images/tiempo/world-asia.gif";
					}else{
						if (variable == "6"){
							obj.src=hostTmp+"/images/tiempo/world-oceania.gif";
						}else{
							if (variable == "7"){
								obj.src=hostTmp+"/images/tiempo/world-america-central.gif";
							}else{
								obj.src=hostTmp+"/images/tiempo/world2.gif";
							}
						}
					}
				}
			}
		}
	}

}

/* verifica que solo haya un checkbox seleccionado para el buscador de interbusca */
function imagenNormal(variable){
	eval("obj = document.getElementById('mapa')");
	obj.src=hostTmp+"/images/tiempo/world2.gif";
}

// envia el formulario al clicar sobre el bot&oacute;n de buscar
function validaSubmitBuscadorTiempo(formu){

	//validar que el campo de busqueda este informado
	if (formu.buscaCiudad.value == ""){

		alert("Informe la cadena de búsqueda.");
		formu.buscaCiudad.focus();
		return false;
	}

	//validar numero de caracteres de la b&uacute;squeda (que sea mayor que 3) 
	if (formu.buscaCiudad.value.length < 3){
		alert("Informe al menos 3 caracteres para acotar la búsqueda.");
		formu.buscaCiudad.focus();
		return false;
	}
	formu.submit();
}
