function zoom(src,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+",left="+left+",top="+top);
wnd.document.write("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n<html><head>\n");
wnd.document.write("<"+"script type='text/javascript'>\n");
wnd.document.write("<!--\n");
wnd.document.write("function KeyPress()\n");
wnd.document.write("{\n");
wnd.document.write("if(window.event.keyCode == 27)\n");
wnd.document.write("window.close();\n");
wnd.document.write("}\n");
wnd.document.write("//-->\n");
wnd.document.write("</"+"script>\n");
wnd.document.write("<title>\""+alt+"\"</title></head>\n");
wnd.document.write("<body style=\"margin: 0;\" onKeyPress=\"KeyPress()\">\n<table border=0 width=\"100%\" style=\"height: 100%;\" cellspacing=0 cellpadding=0><tr><td align=center valign=middle>");
wnd.document.write("<a href=\"javascript:window.close();\"><img src=\""+src+"\" border=\"0\" alt=\""+alt+"\" title=\""+alt+"\"></a>");
wnd.document.write("</td></tr></table></body>");
wnd.document.write("</html>");
wnd.document.close();
return false;
}
