DW=(navigator.appName=="Netscape")?14:20 //20 DH=(navigator.appName=="Netscape")?16:16 //:24 var ntop=0; var nleft=0; var numold=0; var photoW; var DWidth=0; function nullpic() { if (numold != 0) { if (!photoW.closed) photoW.close(); } } function loadpic(num,title,pic,width,height) { if (navigator.appName=="Netscape"){ DWidth=screen.width DHeight=screen.height; width=width-14; } else { DWidth=screen.width; DHeight=screen.height; width=width-4; } width=width + DW; height=height + DH; //alert(DW); width=(width>DWidth)?DWidth:width; height=(height>DHeight)?DHeight-DH:height; www="pic/" + pic; if (numold != 0) { if (!photoW.closed) photoW.close(); } photoW=window.open('',num,'width='+width+',height='+height+',top='+ntop+',left='+nleft+',resizable=0,scrollbars=1,dependent=0,copyhistory=yes,directories=no'); photoW.document.open() photoW.document.write(""); photoW.document.write("" + title + "
"); photoW.document.write("\"""); photoW.document.write("
"); photoW.document.close() numold=num; }