function ShowPage(picture, w, h, alt)

{



var wim=parseInt(w), him=parseInt(h);

if(wim<100) wim=100;

if(document.selection && navigator.userAgent.toLowerCase().indexOf("opera")==-1) wim=wim+0;

if(him<100) him=100;

if(wim>screen.width) wim=screen.width-70;

if(him>screen.height) him=screen.height-70;



var wsss = eval(screen.width/2 - w/2);

var hsss = eval(screen.height/2 - h/2);



	child = window.open('about:blank', null, 'resizable=0,copyhistory=0,directories=0,location=0,menubar=0,scrollbars=0,status=0,toolbar=0,width='+wim+',height='+him+',left='+ wsss +',top='+ hsss + '');

	child.document.write('<html><title>'+alt+'</title><body topmargin="0" leftmargin="0" marginheight="0" marginwidth="0" onload="javascript:window.focus();"><a href="javascript:window.close();"><img src="'+picture+'" border="0" width="'+wim+'" height="'+him+'" alt=" Закрыть окно " title=" Закрыть окно "></a></body></html>');

	child.document.close();

}


function ShowPageMod(picture, w, h, alt, picw, pich, scroll)

{



var wim=parseInt(w), him=parseInt(h);

if(wim<100) wim=100;

if(document.selection && navigator.userAgent.toLowerCase().indexOf("opera")==-1) wim=wim+0;

if(him<100) him=100;

if(wim>screen.width) wim=screen.width-70;

if(him>screen.height) him=screen.height-70;



var wsss = eval(screen.width/2 - w/2);

var hsss = eval(screen.height/2 - h/2);



	child = window.open('about:blank', null, 'resizable=1,copyhistory=0,directories=0,location=0,menubar=0,scrollbars='+scroll+',status=0,toolbar=0,width='+wim+',height='+him+',left='+ wsss +',top='+ hsss + '');

	child.document.write('<html><title>'+alt+'</title><body topmargin="0" leftmargin="0" marginheight="0" marginwidth="0" onload="javascript:window.focus();"><a href="javascript:window.close();"><img src="'+picture+'" border="0" width="'+picw+'" height="'+pich+'" alt=" Закрыть окно " title=" Закрыть окно "></a></body></html>');

	child.document.close();

}
