var picWin = null;

function big(img,w,h,picTitle)
{

	closeTXT = 'bezárás';

	if( navigator.appName == 'Netscape')
	{
		borderSize = 40;
		maxH = window.outerHeight - 30;
		maxW = window.outerWidth;
		wh = h+borderSize+15;
		wh = Math.min(wh, maxH);
		if (wh == maxH) borderSize += 10;
		ww = Math.min(w+borderSize, maxW);
		winFeatures = 'width='+ww+',height='+wh;
		winFeatures += ',screenX=0,screenY=0';
	}
	else
	{
		borderSize = 40;
		maxH =  screen.availHeight - 30;
		maxW =  screen.availWidth;
		wh = h+borderSize+15;
		wh = Math.min(wh, maxH);
		ww = Math.min(w+borderSize, maxW);
		winFeatures = 'width='+ww+',height='+wh;
		winFeatures += ',left=0,top=0';
	}
	winFeatures += ',screenX=0,screenY=0,resizable=yes,scrollbars=yes,toolbar=no,titlebar=no';


//	if (picWin == null)
//		picWin = window.open("","picWin",winFeatures);
//	picWin.close();

	picWin = window.open("","picWin",winFeatures);
	picWin.document.write('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//HU">');
	picWin.document.write('<html>');
	picWin.document.write("<head>\n");
	picWin.document.write('<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2">');
	picWin.document.write("\n<title>"+picTitle+"</title></head>\n");
	picWin.document.write('<body bgcolor="#E0E0E0">');
	picWin.document.write('<center><a href="javascript:window.close()"><img border="1" src="'+img+'" width="'+w+'" height="'+h+'"></a>');
	picWin.document.write('<br><a href="javascript:window.close()"><font size="-1">'+closeTXT+'</font></a></center>');
	picWin.document.write('</body>');
	picWin.document.write('</html>');
	picWin.document.close();  
	picWin.focus();
}
