var NewWin
function OpenWin(Image)
{
 if (NewWin!=null) NewWin.close();
 
// NewWin=window.open("","Bazar",'dependent=Yes,screenX=10,screenY=10,titlebar=no,autosize=no,scrollbars=0',true); //scrollbars=no,autosize=yes
 NewWin=window.open("","Bazar",'dependent=Yes,titlebar=no,autosize=Yes,resizable=yes,scrollbars=10',true); //scrollbars=no,autosize=yes
 NewWin.document.write("<html><body leftmargin=0 topmargin=0 onload='window.resizeTo(MyImg.width+50,MyImg.height+70)' onkeypress=\"return keys();\"><center><Img id=MyImg name=MyImg  src='"+Image+"' alt='Product Image' border=0 align=center valign=middle onload='window.resizeTo(800,600); oldwidth=MyImg.width; oldheight=MyImg.height;'><center> <script>var oldwidth,oldheight; var Ratio=1.5; function keys(){/*alert(\"u clicked:\"+window.event.keyCode);*/if(window.event.keyCode ==27) window.close();   if (window.event.keyCode ==45) {MyImg.width=MyImg.width*(1/Ratio); MyImg.height=MyImg.height*(1/Ratio)}  if (window.event.keyCode ==43) {MyImg.width=MyImg.width*Ratio; MyImg.height=MyImg.height*Ratio}   if (window.event.keyCode ==13) {MyImg.width=oldwidth; MyImg.height=oldheight} window.resizeTo(MyImg.width+20,MyImg.height+30)} <\/script></body><html>")
}


