/* Funcion Para Accesos Banners */ function estadistica(bn_cve) { //alert(bn_cve); var forma = document.formbanners; forma.target = "ifrbn"; forma.bn_cve.value=bn_cve; forma.action="../util/estadisticas/banners/incrementavotos.jsp"; forma.submit(); forma.target = ""; } /* Funcion Busqueda */ function enviar() { var forma = document.getElementsByName("formaBusca")[0]; var titulo = document.getElementsByName("tituloB")[0].value; forma.titulo.value = titulo; forma.resumen.value = titulo; forma.contenido.value = titulo; forma.seccion.value = titulo; forma.submit(); } function busquedaAvanzada(){ window.location="index.jsp?icono=busqueda&tipo=avanzada"; } function verificaDatosB() { var ejecuta,ejecuta1,ejecuta2,ejecuta4,ejecuta3 = 1; var posicion ="" ; if((document.formularioB.titulo.value == "")) { ejecuta1 = 0; } else { if (document.formularioB.titulo.value.length == 1) { ejecuta=0; posicion = document.formularioB.titulo; } } if((document.formularioB.resumen.value == "")) { ejecuta2 = 0; } else { if (document.formularioB.resumen.value.length == 1) { ejecuta=0; posicion = document.formularioB.resumen; } } if((document.formularioB.contenido.value == "")) { ejecuta3 = 0; } else { if (document.formularioB.contenido.value.length == 1){ ejecuta=0; posicion = document.formularioB.contenido; } } if((document.formularioB.seccion.value == "")) { ejecuta4 = 0; } else { if (document.formularioB.seccion.value.length == 1) { ejecuta=0; posicion = document.formularioB.seccion; } } if(ejecuta1!=0 || ejecuta2!=0 || ejecuta3!=0 || ejecuta4!=0) { if(ejecuta != 0) { document.formularioB.submit(); } else { alert('Navegacion.search.alert1'); eval(posicion.focus()); } } else { alert('Navegacion.search.alert2'); } } /* Funcion Faq */ function enviarA() { var valor,valor2; valor2=""; for (i=0;i < document.comentarios.seccion.length;i++) { if(document.comentarios.seccion[i].checked) { valor2 = document.comentarios.seccion[i].value; break; } } if(valor2=="") { alert('Navegacion.faq.consulta_tema.script1'); return false; } window.location.href="index.jsp?seccion="+valor2+"&icono=faq"; } function enviarb() { var dato; dato = document.comentarios.busqueda.value; if(dato=="") { alert('Navegacion.faq.consulta_tema.script2'); return false; } else { window.location.href="index.jsp?dato="+dato+"&icono=faq"; } } /* Funcion Para Accesos Directos */ function sendAccesos(combo) { var url = combo.options[combo.selectedIndex].value; if(url != "") { eval(url); } } /* Funciones para Aplicaciones y Nuevas Ventanas de Tramoya */ function windowAnuncio( Url, width, height, left, top) { window.open(Url,'','width='+ width + ',height=' + height + ',left='+left+',top='+top+'toolbar=0,resizable=1,scrollbars=yes'); } /* Funcion para liga a Archivo */ function windowOpen(ruta) { window.open(ruta,'','width=300,height=300,resizable=yes,scrollbars=yes'); } /* Funcion para Tramoya */ function windowOpenT(ruta,width,height) { window.open(ruta,'','width=' + width + ',height=' + height + ',resizable=yes,scrollbars=yes'); } /* Funcion del rollover del menu */ function cambiarcolor(celda,color) { celda.bgcolor = color; } /* Funciones de login */ function firmarse() { var forma = document.getElementById('formularioFirma'); forma.usr_cve.value = document.getElementsByName('usuario')[0].value; forma.usr_pwd.value = document.getElementsByName('password')[0].value; forma.url_actual.value = 'index.jsp' + window.location.search; forma.logged.value = 'false'; if(forma.usr_cve.value.length==0 || forma.usr_pwd.value.length==0) { alert('Navegacion.login.script.texto'); } else { forma.submit(); } } function desFirmarse() { var forma = document.getElementById('formularioFirma'); forma.url_actual.value = 'index.jsp' + window.location.search; forma.logged.value = 'true'; forma.submit(); } /************** Cambio de password *********************/ function validaContrasena(pwd_actual,pwd_nueva,pwd_comfirm) { direccion=document.form_chgpwd; direccion.action="index.jsp"; if(pwd_nueva==pwd_comfirm && pwd_nueva!="" && pwd_comfirm!="") { direccion.submit(); } else { alert('Navegavion.chgpwd.script1'); } } /************************************/ function abreVentana() { remote = window.open("","nuevo","resizable=no,scrollbars=yes,menubar=no,location=no,toolbar=no,status=no,directories=no,width=360,height=620,top=0,left=0"); remote.location.href = "includes/registro.jsp" } /* Funcion que solo muestra el area de contenido pagina */ function preview() { window.location = "indexPreview.jsp" + location.search; } /* Funcion para el tamaņo del TD del menu */ var heightTotal; function tamTD(height) { document.getElementById("menu").style.height = height; //Se obtienen de CreaMenu.java heightTotal = height; } function tamSubhome() { document.getElementById("subhome").style.height = heightTotal - (125 + 26); //125=banner1 26=barra de iconos } /****** Manejo de Frames **************/ function modFrame(secc_cve) { document.all['contenidos'].contentWindow.location = "inba/TemplateINBA/principal/gmie_shome_new.jsp?secc_cve=" + secc_cve; } function cFrame(parametros) { document.all['contenidos'].contentWindow.location = "/inba/cartelera/carteleraAction.do?dispatch=cargaCartelera&forward=publico&" + parametros; }