﻿function show_image(filename, w, h)
	{
		var heightScr = screen.height;
		var widthScr = screen.width;
		var startImageHeight = ((heightScr - h) / 2) * 0.145;
		var startImageWidth = (widthScr - w) / 2;
		popup = window.open('', '', 'width='+w+', height='+h+',toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,top='+startImageHeight+',left='+startImageWidth);
		popup.document.write('<html><head><title>Просмотр изображения</title></head><body topmargin="0" leftmargin="0"><img src="'+filename+'"></body></html>');
		popup.window.focus();
	}

function showHideDiv(name) {
	if (document.getElementById(name).style.display == 'block') {
		document.getElementById(name).style.display='none';
	} else  {
		document.getElementById(name).style.display='block';
	}
}
