function abreVentana(theUrl,winName,features,width,height) { var str = ""; if (features) str = features + ",height=" + height + ",innerHeight=" + height; else str = "resizable=1,scrollbars=yes,toolbar=0,height=" + height + ",innerHeight=" + height; str += ",width=" + width + ",innerWidth=" + width; if (window.screen) { var sh = screen.availHeight - 30; var sw = screen.availWidth- 10; var txc = (sw - width) / 2; var tyc = (sh - height) / 2; str += ",left=" + txc + ",screenX=" + txc; str += ",top=" + tyc + ",screenY=" + tyc; } window.open(theUrl,winName,str); return; } function openWindowChild(URL,left,width,height) { child = window.open("","ventana","top=100,left=" + left + ",width=" + width + ",height=" + height ); child.location.href = URL; if (child.opener == null) { child.opener = window; } child.opener.name = "opener"; } var incrementosTotales=0; function cambiarTamagnoLetras(agrandar) { var aElementos = document.all['ad']; for (i=0; i< aElementos.length; i++) { elemento = aElementos[i]; if (!elemento.style.fontSize) { if (agrandar) elemento.style.fontSize = '110%'; else elemento.style.fontSize = '90%'; } else { var fsize = elemento.style.fontSize; var incremento=10; var medida='%'; if (fsize.substring(0,fsize.indexOf("px"))) { incremento=2; medida='px'; fsize = fsize.substring(0,fsize.indexOf(medida)) if (agrandar && fsize>=20) return; if (!agrandar && fsize <= 9) return; } else { fsize = fsize.substring(0,fsize.indexOf(medida)) if (agrandar && fsize>=150) return; if (!agrandar && fsize <= 60) return; } if (agrandar) { fsize = Number(fsize)+incremento; elemento.style.fontSize = (fsize+medida); } else { fsize = Number(fsize)-incremento; elemento.style.fontSize = (fsize+medida); } } } } function resetTamagnoLetras() { var aElementos = document.all['ad']; for (i=0; i< aElementos.length; i++) { elemento = aElementos[i]; elemento.style.fontSize = '100%'; } }