//-------------------------------------------------------------------------------------
function openPhoto(name, picture, wd, ht)
{
var xpos=200;
var ypos=50;
var tableHt="100%";
//browser detection
var BrowserName=navigator.appName;
var BrowserVer=parseFloat(navigator.appVersion);
if(BrowserName=="Microsoft Internet Explorer" && BrowserVer>=4) var Explorer5=1;
else Explorer5=0;
//
var windprop = "width="+wd+",height="+ht+",status=Yes,toolbar=no,menubar=no,scrollbars=yes,resizable=yes,screenX=100,screenY=100";
var windtitle = "<title>Ôîòî</title>";
var myWin = open('','photowin',windprop);
var photo='<img src="' +picture+ '" border="1" align="center" style="border-color: Black;">';
myWin.window.top.moveTo(xpos, ypos);
myWin.document.open();
myWin.document.write('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">\n');
myWin.document.write('<html><head>\n');
myWin.document.write('<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1251">\n');
myWin.document.write(windtitle);
myWin.document.write('<LINK rel="stylesheet" href="main.css">');
myWin.document.write('</head><body bgcolor="white">\n');
myWin.document.write('<table align="center" border="0" width="100%" cellpadding="2" cellspacing="2" bgcolor="#FFFFFF">\n');
myWin.document.write('<tr valign="top" width="100%" height="20" bgcolor="#DFEFFF">\n');
myWin.document.write('<td class="news" align="left">\n');
myWin.document.write(name);
myWin.document.write('</td></tr>\n');
myWin.document.write('<tr valign="top" width="100%" height="60" bgcolor="#FAFAFA">\n');
myWin.document.write('<td align="center" valign="middle" height="' +tableHt+ '">\n');
myWin.document.write(photo);
myWin.document.write('</td></tr>\n');
myWin.document.write('</table>\n');
myWin.document.write('<center><a href="javascript:close();" onMouseOver="window.status=\'Çàêðûòü\';return true;" onMouseOut="window.status=\'\';">ÇÀÊÐÛÒÜ</a></center>');
myWin.document.write('</body></html>');
myWin.document.close();
}
//-------------------------------------------------------------------------------------
