


	function onTextChange()
	{
		window.focus();
		window.location.href = window.location.href;
	}



	function abrirVentanaDemandasRapida(vs_href)
	{
		abrirVentana(vs_href + '&url=' + escape(URL.scriptArgumentsMod(window.location.href,'del(hd_form&servicio&pagina&accion)')), 'demandas_rapida', 275, 210);
	}



	function abrirVentanaEnviarAmigo(vs_href)
	{
		abrirVentana(vs_href + '&url=' + escape(URL.scriptArgumentsMod(window.location.href,'add(acceso_producto=email)|del(hd_form&servicio&accion)')), 'amigo', 375, 390);
	}



	function abrirVentanaCalculadoraHipotecas(vs_href)
	{
		abrirVentana(vs_href, 'calculadora_hipotecas', 275, 225);
	}



	function abrirVentanaImagen(vs_href)
	{
		window.open(vs_href, 'imagen', 'width=350, height=200, left=' + ((screen.availWidth - 350) / 2) + ', top=' + ((screen.availHeight - 200) / 2) + ', location=no, menubar=no, status=no, toolbar=no, scrollbars=no, resizable=no').focus();
	}



	function abrirVentanaEdicionTexto(vs_href)
	{
		abrirVentana(vs_href, 'texto', 400, 300);
	}



	function abrirVentanaAvisoLegal(vs_href)
	{
		abrirVentana(vs_href, 'aviso_legal', 400, 250)
	}



	function abrirVentanaPoliticaPrivacidad(vs_href)
	{
		abrirVentana(vs_href, 'politica_privacidad', 350, 275);
	}



	function abrirVentana(vs_href, vs_name, vi_width, vi_height)
	{
		window.open(vs_href, vs_name, 'width=' + vi_width + ', height=' + vi_height + ', left=' + ((screen.availWidth - vi_width) / 2) + ', top=' + ((screen.availHeight - vi_height) / 2) + ', location=no, menubar=no, status=no, toolbar=no, scrollbars=yes, resizable=no').focus();
	}


	function abrirVentanaSinScroll(vs_href, vs_name, vi_width, vi_height)
	{
		window.open(vs_href, vs_name, 'width=' + vi_width + ', height=' + vi_height + ', left=' + ((screen.availWidth - vi_width) / 2) + ', top=' + ((screen.availHeight - vi_height) / 2) + ', location=no, menubar=no, status=no, toolbar=no, scrollbars=no, resizable=no').focus();
	}


	function abrirDialogoArchivo(vs_href)
	{
		window.open(vs_href, 'upload', 'width=400,height=200,left=' + ((screen.availWidth-400) / 2) + ',top=' + ((screen.availHeight-300) / 2) + ',location=no,menubar=no,status=no,toolbar=no,scrollbars=yes,resizable=no,scrollbars=no').focus();
	}



	function onUpload(vu_window, va_settings)
	{
		vu_window.close();
		window.focus();
		window.location.href = window.location.href;
	}

	function zoomImageContenido(vs_href, vi_width, vi_height)
	{
		window.open(vs_href, 'imagen', 'width='+vi_width+',height='+vi_height+',left=' + ((screen.availWidth - vi_width) / 2) + ',top=' + ((screen.availHeight - vi_height) / 2) + ',scrollbars=no').focus();
	}

	function switchBox(vs_image, vs_list, vi_type)
	{
		var lu_image = document.getElementById(vs_image);
		var lu_list = document.getElementById(vs_list);
		if (lu_list && lu_image && gu_preloaded)
		{
			if (lu_list.style.display != 'none')
			{
				lu_list.style.display = 'none';
				lu_image.src = gu_preloaded[vi_type].collapsed.src;
			}
			else
			{
				lu_list.style.display = 'block';
				lu_image.src = gu_preloaded[vi_type].expanded.src;
			}
		}
	}



	function switchSection(vs_layerShow, vs_layerHide)
	{
		var lu_layerShow = document.getElementById(vs_layerShow);
		var lu_layerHide = document.getElementById(vs_layerHide);
		if (lu_layerShow && lu_layerHide)
		{
			lu_layerHide.style.display = 'none';
			lu_layerShow.style.display = 'block';
		}
	}
