//-------------------------------------------------- //Jamie's Pop-up Image Viewer /* To use call like this: Text or image or or Text or image */ var photoview = "Null"; function JM_photo(image){ if (photoview == "Null") { } else { if (!photoview.closed) { photoview.close() } } photo1 = new Image(); photo1.src = image; JM_2(image); } function JM_2(image){ if((photo1.width!=0)&&(photo1.height!=0)){ viewPhoto(image); } else { funstuff="JM_2('"+image+"')"; interval=setTimeout(funstuff,20); } } function viewPhoto(image) { width=photo1.width+20; height=photo1.height+20; string="width="+width+",height="+height; photoview=window.open(image,"",string); photoview.moveTo(0,0); photoview.focus() }