function ImgShw(ID, width, height, alt)
{
	var scroll = "no";
	var top=0, left=0;
	if(width > screen.width-10 || height > screen.height-28) scroll = "yes";
	if(height < screen.height-28) top = Math.floor((screen.height - height)/2-14);
	if(width < screen.width-10) left = Math.floor((screen.width - width)/2-5);
	width = Math.min(width, screen.width-10);
	height = Math.min(height, screen.height-28);
	var wnd = window.open("","","scrollbars="+scroll+",resizable=yes,width="+width+",height="+(height+25)+",left="+left+",top="+top);
	wnd.document.write(
		'<html><head>'+
		'<script type="text/javascript">'+
		'function KeyPress()'+
		'{'+
		'	if(window.event.keyCode == 27) '+
		'		window.close();'+
		'}'+
		'</'+'script>'+
		'<title>'+alt+'</title></head>'+
		'<body topmargin="0" leftmargin="0" marginwidth="0" marginheight="0" onKeyPress="KeyPress()">'+
		'<img src="'+ID+'" border="0" alt="'+alt+'" />'+
		'<div style="height:25px; text-align: center;"><a href="#" onclick="window.close()" style="color: black">Back</a></div>'+
		'</body></html>'
	);
	wnd.document.close();
}
