// ******************************************* // Funciones JavaScript comunes a toda el site // ******************************************* NS4 = (document.layers) ? 1 : 0; IE4 = (document.all) ? 1 : 0; ver4 = (NS4 || IE4) ? 1 : 0; (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); ga('create', 'UA-63509479-2', 'auto'); ga('send', 'pageview'); function js_Ventana(www,ancho,alto,titulo,target) { var destino=www+'#'+target; var ventana=window.open(destino,titulo,'status=no,location=0,0, resizable=no,width='+ancho+',height='+alto); // Eliminado param: scrollbars=no ventana.opener.top.name="opener"; ventana.focus(); } function js_UpdateHome() { var windowPtr = ( top.opener.location ) ? top.opener : window.open( "", "newWindow" ); windowPtr.location.href = ""; windowPtr.focus(); } function js_popup(lista,limpia) {n=limpia.indexOf('x'); while (n!=-1) {m=limpia.indexOf('x',n+1); if (m!=-1) {final=m;} else {final=limpia.length;} cadena=limpia.substring(n,final); document.all[cadena].style.visibility = "hidden"; n=m; } n=lista.indexOf('x'); while (n!=-1) {m=lista.indexOf('x',n+1); if (m!=-1) {final=m;} else {final=lista.length;} cadena=lista.substring(n,final); document.all[cadena].style.visibility = "visible"; n=m; } } function js_tr(a,b,c,d,e,r) { if(r==''){r='seccion.asp?idseccion';} document.write(""); if (e>0) {if (a=='s') {document.write(" ");} else {document.write(""); } document.write(""); } document.write(" "+c+""); if (e==0) {if (a=='s') {document.write(" ");} else {document.write(""); } document.write(""); } document.write(""); } function js_t1(a,b,c,d,e) { document.write("
"); document.write(""); } function js_t2() { document.write("
\n"); } function js_popup_limpia(limpia) {n=limpia.indexOf('x'); while (n!=-1) {m=limpia.indexOf('x',n+1); if (m!=-1) {final=m;} else {final=limpia.length;} cadena=limpia.substring(n,final); document.all[cadena].style.visibility = "hidden"; n=m; } } function js_popup_on(uno,dos) {if (NS4) {document.layers[dos].visibility = "hide";} else {document.all[dos].style.visibility = "hidden";} if (NS4) {document.layers[uno].visibility = "show";} else {document.all[uno].style.visibility = "visible";} } function js_popup_off(lista,limpia) {n=lista.indexOf('x'); while (n!=-1) {m=lista.indexOf('x',n+1); if (m!=-1) {final=m;} else {final=lista.length;} cadena=lista.substring(n,final); document.all[cadena].style.visibility = "hidden"; n=m; } n=limpia.indexOf('x'); while (n!=-1) {m=limpia.indexOf('x',n+1); if (m!=-1) {final=m;} else {final=limpia.length;} cadena=limpia.substring(n,final); document.all[cadena].style.visibility = "hidden"; n=m; } } function bookmarkUrl(strUrl, strTitle) { window.external.AddFavorite(strUrl, strTitle); }