
function showImage(ptitle,img,w,h,caption) { 
    //Make a new HTML page from inside the parent page 
    //Note that any quotes in the HTML need to be escaped with the backslash. 
		
	showimg = window.open("","showimg","width="+w+",height="+h+",menubar=no,toolbar=no,left=250,top=50"); 
    showimg.focus(); 
    showimg.document.open(); 
    showimg.document.write("<html><head><title>Quantum Acquisitions</title></head>"); 
	showimg.document.write("<body bgcolor='#deb887' onDblClick=\"self.close()\">"); 
    showimg.document.write("<font face=\"Verdana,Tahoma,Arial\" size=\"2\" color='#000000'>"); 

    showimg.document.write("<p><center>"); 
    showimg.document.write("<h1>"+ptitle+"</h1>"); 
	showimg.document.write("<p><img src='"+img+"' border=1>"); 

	if (caption > '') {
		showimg.document.write("<br>"+caption);
	}
    showimg.document.write("</center></p>"); 

    showimg.document.write("<center><form>"); 
    showimg.document.write("<input type=button value=\"Close This Window\" onClick=\"javascript:window.close();\">"); 
    showimg.document.write("</form></center>"); 
    showimg.document.write("</body></html>"); 
    showimg.document.close(); 
}