// JavaScript Document
function popImage(file,image,w,h) { 
    imageWin = window.open("", "imageWin2", "width="+w+",height="+h+""); 
    ndoc = imageWin.document;
    astr = "<html><head><title>"+image+"</title></head><body style='margin: 0px'>";
    astr += "<img src="+file+">";
    astr += "</body></html>";
    ndoc.open();
    ndoc.write(astr);
    ndoc.close();
}