function showimg(istring)
{

	pwin = open("","i4html","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=300,height=400");
	pwin.moveTo((screen.availWidth-300)/2,(screen.availHeight-400)/2);
	pwin.focus();
	pwin.document.open("text/html")
	pwin.document.write('<html><head><title>Image</title></head><body topmargin="0" leftmargin="0" marginwidth="0" marginheight="0">');
	pwin.document.write('<img name="dimg" src="'+istring+'" alt="'+istring+'">');
	pwin.document.writeln('<script language="JavaScript">');
	pwin.document.writeln(' ia = window.setInterval("checker()",200); ');
	pwin.document.writeln('function checker(){ ');
	pwin.document.writeln(' if(document.dimg.complete == true ) { ');
	pwin.document.writeln('var h = document.dimg.height + 35;');
	pwin.document.writeln('var w = document.dimg.width + 30;');
	pwin.document.writeln(' if( h > screen.availHeight ){ h = screen.availHeight - 10; } ');
	pwin.document.writeln(' if( w > screen.availWidth ){ w = screen.availWidth - 10; } ');
	pwin.document.writeln('window.resizeTo(w,h);');
	pwin.document.writeln('window.moveTo((screen.availWidth-w)/2,(screen.availHeight-h)/2);');
	pwin.document.writeln(' window.clearInterval(ia); ');
	pwin.document.writeln(' } /* endif */ } /* endfnc */');
	pwin.document.writeln('</script>');
	pwin.document.write("</body></html>");
	pwin.document.close()

	return;
}

