var anchoPreview=0; var altoPreview=0; if (window.screen){ anchoPreview = (screen.width - 780)/2; altoPreview = (screen.height - 580)/2; } function previewPortal(enlace,abrir){ var aux="http://www.portugalete.org/portal/"; aux = aux + '/p_2_final_Interna_Est_1.jsp'+"?seccion="; enlace=enlace.substring(2,enlace.length); if(aux.indexOf("?") == -1) aux = aux + enlace; else enlace = enlace.replace('?','&'); aux = aux + enlace; if(aux.indexOf("?") == -1) aux+="?language="+'es'; else aux+="&language="+'es'; aux+="&codResi="+1; aux+="&layout="+'p_2_final_Interna_Est_1.jsp'; if(abrir == "1") open(aux,"","toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=yes,scrollbars=yes,width=800,height=600,top="+altoPreview+",left="+anchoPreview+""); else{ parent.location.href=aux; } } function preview(enlace,abrir){ var aux="http://www.portugalete.org/portal/"; aux = aux + '/p_2_final_Interna_Est_1.jsp'+"?seccion="; enlace=enlace.substring(2,enlace.length); if(aux.indexOf("?") == -1) aux = aux + enlace; else enlace = enlace.replace('?','&'); aux = aux + enlace; if(aux.indexOf("?") == -1) aux+="?language="+'es'; else aux+="&language="+'es'; aux+="&codResi="+1; aux+="&layout="+'p_2_final_Interna_Est_1.jsp'; if(abrir == "1") open(aux,"","toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=yes,scrollbars=yes,width=800,height=600,top="+altoPreview+",left="+anchoPreview+""); else{ parent.location.href=aux; } } var GENERAL_htmlZoom_ETIQS = new Array('div', 'td', 'tr', 'a', 'p'); // Specify affected tags. Add or remove from list function id2Obj(id) { return (document.getElementById) ? document.getElementById(id) : ((document.all) ? document.all[id] : document.layers[id]); } // id2Obj function htmlZoom(id_etiq, zoom) { var objX, iX, objTags, iTags; // if (!(objX = id2Obj(id_etiq))) { objX = document.getElementsByTagName(id_etiq)[0]; alert(objX); } objX.style.fontSize = zoom; for (iX = 0; iX < GENERAL_htmlZoom_ETIQS.length; iX++) { objTags = objX.getElementsByTagName(GENERAL_htmlZoom_ETIQS[iX]); for (iTags = 0; iTags < objTags.length; iTags++) { objTags[iTags].style.fontSize = zoom; } // for } // for } // htmlZoom