function pop(pix)
{
mywin = window.open('','picture','menubar=no,location=no,toolbar=no,scrollbars=no,resizable=yes,status=no,width=100,height=100');
mywin.document.open();
mywin.document.write("<html><head><title>Freedomcars</title>\n<SCRIPT language='JavaScript'>\n<!--\nfunction fit()\n{\nvar hgap=10;\nvar vgap=29;\nif (navigator.appName != 'Microsoft Internet Explorer')\n{\nhgap=50;\nvgap=70;\n}\nif (navigator.appName != 'Windows Internet Explorer')\n{\nhgap=10;\nvgap=72;\n}\nhgap = hgap + document.images[0].width;\nvgap = vgap + document.images[0].height;\nwindow.resizeTo(hgap,vgap);\n}\n//-->\n</SCR");
mywin.document.write("IPT>\n</head>\n<body topmargin=0 leftmargin=0 marginheight=0 marginwidth=0 onload='fit();' bgcolor='#CCCCCC'>\n<table border=0 cellspacing=0 cellpadding=0 width=100% height=100%><tr><td align=center><a href='javascript:window.close();void(0);'><img src=");
mywin.document.write(pix);
mywin.document.write(" alt='Закрыть' border=0 hspace=0 vspace=0></a></td></tr></table></body></html>");
mywin.document.close();
};
