function popupww(gid,id,winw,winh) { if (!pww.closed && pww.location) { pww.resizeBy(winw-pwwinW(),winh-pwwinH()); pww.location.href = ("photoview.php?gid="+gid+"&id="+id); } else { pww=window.open("photoview.php?gid="+gid+"&id="+id,"pww",'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width='+winw+',height='+winh+',left=20,top=20'); } if (window.focus) { pww.focus(); } } function pwwinW() { if (pww.innerWidth) return pww.innerWidth; else if (pww.document.documentElement && pww.document.documentElement.clientWidth) return pww.document.documentElement.clientWidth; else if (pww.document.body && pww.document.body.clientWidth) return pww.document.body.clientWidth; else return false; } function pwwinH() { if (pww.innerHeight) return pww.innerHeight; else if (pww.document.documentElement && pww.document.documentElement.clientHeight) return pww.document.documentElement.clientHeight; else if (pww.document.body && pww.document.body.clientHeight) return pww.document.body.clientHeight; else return false; }