	/** 
	  *		RedimDedE v1.0
	  *		--------------
	  *		Apre un popup nel centro dello schermo, con le dimensioni dell'immagine
	  *		void apriImg(String nomeImmagine)
	  *
	  **/
	function apriImg(nomeImg){
		
		var txt="";
		txt+="<HTML>\n"
		txt+="<HEAD>\n"
		txt+="<TITLE>Associazione Ornitologica Faentina</TITLE>\n"
		txt+="</HEAD>\n"
		txt+="<SCRIPT LANGUAGE=javascript>\n"
		txt+="<!--\n"
		txt+="	function redimensiona(idImg){\n"
		txt+="		var x,y;\n"
		txt+="		var scrX,scrY;\n"
		txt+="		var obj;\n"
		txt+="		obj=window.document.getElementById(idImg);\n"
		txt+="		x=obj.width+10;\n"
		txt+="		y=obj.height+30;\n"
		txt+="		scrX=window.screen.availWidth-8;\n"
		txt+="		scrY=window.screen.availHeight-30;\n"
		txt+="		window.resizeTo(x,y);\n"
		txt+="		window.moveTo((scrX-x)/2, (scrY-y)/2);\n"
		txt+="	}\n"
			
		txt+="//-->\n"
		txt+="</"+"SCRIPT>\n"

		txt+="<BODY leftmargin=0 topmargin=0 rightmargin=0 bottommargin=0 >\n"
		txt+="<img src="+nomeImg+" border=0 id='theImg' name='theImg'  onload=\"redimensiona('theImg');\">\n"
		txt+="</BODY>\n"
		txt+="</HTML>\n"

		var theWindow;
		theWindow=window.open("","zoom","left=1000,top=1000, width=2, height=2,location=0,toolbar=0");
		theWindow.document.writeln(txt);
	}