function openPictureWindow(imageName,imageWidth,imageHeight,alt) {
	var w=800, h=600;
	if(screen.width!=null && screen.height!=null) {
		w=screen.width;
		h=screen.height;
	}
	newWindow = window.open("","newWindow"+Math.round(Math.random()*10000),"width="+imageWidth+",height="+imageHeight+",left="+(w>imageWidth?Math.round((w-imageWidth)/2):0)+",top="+(h>imageHeight?Math.round((h-imageHeight)/4):0));
	newWindow.document.open();
	newWindow.document.write('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"><html><head><title>'+alt+'</title></head><body style="margin: 0; padding: 0; background-color: #d0d7cf;" onClick="self.close()">');
	newWindow.document.write('<div style="position: absolute; width: 100%; bottom: 1%; text-align: center;">Гружу картинку, подождите...<br><br><br><br><br><img src="images/load.gif" width="18" height="4" alt=""></div>');
	newWindow.document.write('<div style="position: absolute"><img src="'+imageName+'" width="'+imageWidth+'" height="'+imageHeight+'" alt="'+alt+'"');
	newWindow.document.write('></div></body></html>');
	newWindow.document.close();
	newWindow.focus();
}