window.defaultStatus=" Producto Propio PADVI · 902 100 989 "; //status=" Producto Propio PADVI · 902 100 989"; //Función que redirige al pulsar el banner de la cabecera function promocion(){ self.location.href="/app/doc/quienes_somos/default.asp"; } //función que muestra una alert cuando se pulsa sobre el botón derecho function anularBotonDerecho(){ if (event.button == 2) { alert("Producto Propio PADVI · 902 100 989"); } } /* document.onmousedown=anularBotonDerecho; */ //esta línea es la que indica que se deshabilite el botón derecho del ratón //abre la ventana del calendario function calendario(tipo, formulario_, nm_campo_){ var fecha = eval(formulario_+"."+nm_campo_+".value"); var nombre = eval(formulario_+".name"); ventanaXY(425,250,175,145,'/app/inc/calendario/calendario.asp?tipo='+tipo+'&dt='+fecha+"&formulario="+nombre,'') } function ir_a(pagina_){ document.location = pagina_; } function ventana(theURL,winName,features) { //v2.0 var options= features + ",top=10, left=10, status=yes" window.open(theURL,winName,options); } function ventanaXY(X, Y, ancho, alto, URL, propiedades) { var windowprops = "left=" + X + ",top=" + Y + ",width=" + ancho + ",height=" + alto; if (propiedades != "") { windowprops = windoprops + "," + propiedades; } popup = window.open(URL,"MenuPopup",windowprops); } function cambiarImg(nm,img){ eval("document."+nm+".src='"+img+"'"); } function imgOut(nm,img){ eval("document."+nm+".src='"+img+"'"); } function imgOver(nm,img){ eval("document."+nm+".src='"+img+"'"); } //function trOut(nm,img){ // eval("document."+nm+".src='"+img+"'"); //} //function trOver(nm,img){ // eval("document."+nm+".src='"+img+"'"); //} function abreven(url, nombre, opciones){ window.open(url,nombre,opciones); } function vent_imprimir(URL, ancho, alto) { var nom_ventana = Math.round(Math.random() * 1000000); if ((ancho ==null ) && (alto ==null )) { var propiedades= "width=575,height=525,top=10,left=10"; window.open(URL,nom_ventana,propiedades); } else { var propiedades = "left=10,top=10, width=" + ancho + ",height=" + alto; window.open(URL,'imprimir',propiedades); } } function vent_imprimir_alta(URL, ancho, alto) { var nom_ventana = Math.round(Math.random() * 1000000); if ((ancho ==null ) && (alto ==null )) { var propiedades= "width=575,height=525,top=10,left=10"; window.open(URL,nom_ventana,propiedades); } else { var propiedades = "left=10,top=10, width=" + ancho + ",height=" + alto; window.open(URL,'alta',propiedades); } } function logo (id,bl) { window.open("/app/adm/agencias/logo.asp?idAgencia="+id+"&logotipo="+bl,"logotipos","width=375,height=270"); } // para mostrar y ocultar las capas de ayuda var estado; var actual; function mostrar(nombreCapa){ document.getElementById(nombreCapa).style.visibility="visible"; estado=1; actual=nombreCapa; } function ocultar(nombreCapa){ if (actual==nombreCapa){ document.getElementById(actual).style.visibility="hidden"; estado=0; }else{ document.getElementById(actual).style.visibility="hidden"; document.getElementById(nombreCapa).style.visibility="visible"; estado=1; actual=nombreCapa; } } function accion_ayuda(nombrecapa){ if(estado==1){ ocultar(nombrecapa); } else{ mostrar(nombrecapa); } } // funcion que hace un onmouseover de una imagen. // recibe el id de la imagen y el nombre. function imgOver(img_,archivo_){ img_.src=archivo_; } function ver_pagina(pagina_){ top.contenido.document.location = pagina_; } function mOvr(src,clrOver) { if (!src.contains(event.fromElement)) { src.bgColor = clrOver; } } function mOut(src,clrIn) { if (!src.contains(event.toElement)) { src.bgColor = clrIn; } } function ir_logout(){ self.document.location.href='/app/logout.asp'; } function enviar_clave(em_,ad_){ vent_imprimir('/app/imprimir/vent_imprimir.asp?archivo=/app/doc/dat_agencia/enviar_clave.asp&txt_cabecera=envío de clave&botones=no&em='+em_+'&ad='+ad_,440,400) } function enviar_registro(){ vent_imprimir_alta('/app/doc/agencia/sol_datos.asp?pp=1',500,565); //vent_imprimir_alta('/app/imprimir/vent_imprimir.asp?archivo=/app/doc/agencia/sol_datos.asp&txt_cabecera=solicitud de registro en 1001hoteles&botones=no',510,545) } // Barra de estado function hidestatus() { window.status=' Producto Propio PADVI · 902 100 989 ' return true } if (document.layers) document.captureEvents(Event.MOUSEOVER | Event.MOUSEOUT) document.onmouseover=hidestatus document.onclick=hidestatus document.onmouseout=hidestatus