var win = null;
function showPic(url,title,width,height){
    //if(win && win.open && !win.closed)
    //	win.close();
    Ms=screen;
    wh=Ms.width-20;
    hg=Ms.height-60;
    win_w=width+60;
    win_h=height+115;
    if (win_w>wh) win_w=wh;
    if (win_h>hg) win_h=hg;
    param = 'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width='+win_w+',height='+win_h
    body="<html><head><title>"+title+"</title></head><body bgcolor='#FFFFFF' link='blue' vlink='#12455C' alink='#12455C'><table border='0' cellspacing='1' cellpadding='0'><tr><td><table border='0' cellspacing='0' cellpadding='0' width=100%><td bgcolor='black' width=20>&nbsp;&nbsp;</td><td bgcolor='black' width=100%><b><font color='#CFE3FF'>&nbsp;";
    body+=title+"</font></b></td></table></tr><tr><td><table border='0' cellpadding='1' cellspacing='0' bgcolor='black'><tr><td><table bgcolor='#EFF6FF' cellpadding=1 cellspacing=0 border=0><tr><td valign='top'><img src='";
    body+=url+"' width='"+width+"' height='"+height+"' alt='"+title+"' vspace=6 hspace=6></td></tr></table></td></tr></table><p align='right'><a href='javascript:window.close()'><img src='/images/js/close.gif' border=0 width=81 height=22></a></td></tr></table></body></html>";
    win = window.open("","win1",param);
    win.document.open();
    win.document.write(body);
    win.document.close();
}