// This is the way to link <a href="javascript:winopn('asd.gif',300,500)">aaaaaa</a>

function winopn(img,w,h)
{

Deoimgopen=window.open("","win1",'width='+eval(w+115)+',height='+eval(h+25)+',status=no,menubar=no,scrollbars=yes,toolbar=no,location=no,resizable=yes,left=300,top=0')
Deoimgopen.document.open();
Deoimgopen.document.write("<html><head><title>Full View</title></head><body bgcolor='bg.jpg' leftmargin='0' topmargin='0' marginwidth='0' marginheight='0'>");
Deoimgopen.document.write("<table border='0' align='center'><tr><td width="+w+" bgcolor='#FFFFFF'><font color='red'><img src='"+img+"' border='4' width="+w+" height="+h+"></font></td><td></td></tr></table>")
Deoimgopen.document.write("<center><a href=javascript:window.close()><b><font color='#FFFFFF'>...Close Window...</font></b></a></center>");
Deoimgopen.document.close();
Deoimgopen.resizeTo(eval(w+50),eval(h+75))
Deoimgopen.focus()
//window.opener.RefreshWin(); 
//onUnload='opener.location.href = opener.location.href' ;
//window.opener.reload(opener.location.href)
}
function winopn1(pagename,w,h)
{
window.open(pagename,"win2",'width='+eval(w+115)+',height='+eval(h+25)+',status=no,menubar=no,scrollbars=yes,toolbar=no,location=no,resizable=yes,left=300,top=0')

}
