function openWin(page, width, height)
{	
	if(!width) 
		width=800;
	if(!height)
		height=600;
	hWin=this.open(page, "", "toolbar=no,scrollbars=yes,status=yes,height="+height+",width="+width);
} 
function showImg(path, width, height)
{	
uaVers='' // uaVers может не определиться в Опере, так что, переменную приходится инициализировать, чтобы не было ошибок
if (window.navigator.userAgent.indexOf ("Opera") > 0)
  {
//   ua = 'Opera';
//   uaVers=window.navigator.userAgent.substr(window.navigator.userAgent.indexOf("Opera")+6,4);
	h_cor=0;
	w_cor=0;
  }
else
if (window.navigator.userAgent.indexOf ("Gecko") > 0) // (Mozilla, Netscape, FireFox)
  {        // Их врядли стоит разделять, так как их разделение – только попытка вдохнуть новую жизнь в одного и того же вымирающего динозавра
//   ua = 'Netscape';
//   uaVers=window.navigator.userAgent.substr(window.navigator.userAgent.indexOf("Gecko")+6,8)+ ' ('+ window.navigator.userAgent.substr(8,3) + ')';
	h_cor=0;
	w_cor=0;
  }
else
if (window.navigator.userAgent.indexOf ("MSIE") > 0)
  {
//   ua = 'Explorer';
//   uaVers=window.navigator.userAgent.substr(window.navigator.userAgent.indexOf("MSIE")+5,3);
	h_cor=0;
	w_cor=0;
  }
else
{
//   ua = window.navigator.appName; // Неизвестные мне браузеры
   	h_cor=0;
	w_cor=0;
}
	if(!width) 
		width=800;
	if(!height)
		height=600;
	height+=h_cor;
	width+=w_cor;
	hWin=this.open("showimg.asp?path="+path, "", "toolbar=no,scrollbars=no,status=yes,height="+height+",width="+width);
}