window.defaultStatus=" Nego Servicios "; status=" Nego Servicios "; // Barra de estado function hidestatus() { window.status=' Nego Servicios ' return true } if (document.layers) document.captureEvents(Event.MOUSEOVER | Event.MOUSEOUT) document.onmouseover=hidestatus document.onclick=hidestatus document.onmouseout=hidestatus //función que muestra una alert cuando se pulsa sobre el botón derecho function anularBotonDerecho(){ if (event.button == 2) { alert("Negoservicios"); } } //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,140,'/app/inc/calendario/calendario_v.3.1.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" 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=540,height=525,top=10,left=10,scrollbars=yes"; window.open(URL,nom_ventana,propiedades); } else { var propiedades = "left=10,top=10, width=" + ancho + ",height=" + alto + ",scrollbars=yes"; window.open(URL,'imprimir',propiedades); } } function vent_imprimir_resizable(URL, ancho, alto) { var nom_ventana = Math.round(Math.random() * 1000000); if ((ancho ==null ) && (alto ==null )) { var propiedades= "width=540,height=525,top=10,left=10,scrollbars=yes, resizable=yes"; window.open(URL,nom_ventana,propiedades); } else { var propiedades = "left=10,top=10, width=" + ancho + ",height=" + alto + ",scrollbars=yes,resizable=yes"; window.open(URL,'imprimir',propiedades); } } function vent_imprimir2(URL, nom_ventana, ancho, alto) { //Creada a partir de vent_imprimir para que asigne siempre un titulo aleatorio a las ventanas //var nom_ventana = Math.round(Math.random() * 1000000); if ((ancho ==null ) && (alto ==null )) { var propiedades= "width=525,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,nom_ventana,propiedades); } } function ver_seguros(agencia_){ window.open('/app/imprimir/seguros.asp?usu='+agencia_,'seguros','width=600,height=580, left=10, top=10') }