function showDetail(width, height, src, title) {
    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=yes,resizable=yes,width=" + width + ",height=" + height + ",left=" + left + ",top=" + top);
    
	wnd.document.write(
		"<html><head>"+
		"<title>"+title+"</title></head>"+
		"<body topmargin=\"0\" leftmargin=\"0\" marginwidth=\"0\" marginheight=\"0\" onclick=\"window.close();\">"+
		"<table width='100%' height='100%'><tr><td>"+
		"<a href=\"#\" onclick=\"window.close();\"><img src=\""+src+"\" border=\"0\" alt=\""+title+"\" /></a>"+
		"</td></tr></table>"+
		"</body></html>"
	);
    
    wnd.document.close();
}
