//Based on mosThumb.js from mosThumb Mambot by Manfred Dennerlein //Creates popup window for thumbnail function thumbPopup(mypage, myname, w, h, caption) { if (caption == 'true'){ caption_name = myname; }else{ caption_name = ""; } var props = ''; var orig_w = w; var scroll = ''; var winl = (screen.availWidth - w) / 2; var wint = (screen.availHeight - h) / 2; if (winl < 0) { winl = 0; w = screen.availWidth -6; scroll = 1;} if (wint < 0) { wint = 0; h = screen.availHeight - 32; scroll = 1;} winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable=no' win = window.open('', 'myThumb', winprops) win.document.open(); win.document.write(''); win.document.write(''); win.document.write(''); win.document.write(''+myname+''); win.document.write(''); win.document.write(''+myname+''); win.document.write('
'); win.document.write('
'+caption_name+'
'); win.document.write(''); win.document.close(); if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); } }