// funzione che crea una finestra contenente l'immagine passata
function picWindow(lang,nome,relPath,w,h)
{	
	var imgPath;
	var Status;
	
	// controlla la lingua per generare il percorso dell'immagine da visualizzare
	if(lang=="eng")
	{
		imgPath="../img/"+relPath;
		Status="Click on the picture to close the window";
	}
	else
	{
		imgPath="img/"+relPath;
		Status="Clicca sull\\'immagine per chiudere la finestra";
	}
		
	// crea un oggetto nuova finesta
	var imgWin=window.open('','','width='+w+', height='+h+', left=20, top=20, screenX=20, screenY=20, status');
	
	with(imgWin.document)
	{
		open();
		write('<html>');
		write('	<head>');
		write('		<title>'+nome+'</title>');
		write('		<script language="javascript">');
		write('				defaultStatus="'+Status+'";');
		write('		</script>');
		write('	</head>');
		write('	<body leftmargin="0" topmargin="0">');
		write('		<p><a href="Javascript:" onClick="window.close()" OnMouseOver="window.status=\''+Status+'\'; return true"><img src="'+imgPath+'" border="0"></a></p>');
		write('	</body>');
		write('</html>');
		close();
	}
}