function imgResize() {
	var imgWidth = document.imgPopup.width;
	var imgHeight = document.imgPopup.height;
	resizeTo(imgWidth, imgHeight);
}

function imgResizeNew() {
	var NS = (navigator.appName=="Netscape")?true:false; 
	iWidth = (NS)?window.innerWidth:document.body.clientWidth;
	iHeight = (NS)?window.innerHeight:document.body.clientHeight;
	iWidth = document.images[0].width - iWidth;
	iHeight = document.images[0].height - iHeight;
	window.resizeBy(iWidth, iHeight);
	self.focus();
}; 

function openImgPopup(imgPath) { 
	winPopup = open("","_blank","width=600,height=400,toolbar=no,directories=no,menubar=no,resizable=yes,scrollbars=yes,left=10,top=10");
	winPopup.document.write("<head>");
	//winPopup.document.write("<script src='/static/openimgpopup.js' type='text/javascript'></script>");
	winPopup.document.write("<title>Image</title>");
	winPopup.document.write("</head>");
	winPopup.document.write("<body leftmargin='0' topmargin='0' rightmargin='0' bottommargin='0' marginwidth='0' marginheight='0'>");
	winPopup.document.write("<img src='" + imgPath + "' name='imgPopup'>");
	winPopup.document.write("</body>");
	winPopup.document.close();
	winPopup.focus();
}

function mappa(filePath) { 
	winPopup = open(filePath,"_blank","width=425,height=350,toolbar=no,directories=no,menubar=no,resizable=yes,scrollbars=yes,left=10,top=10");
	winPopup.document.close();
	winPopup.focus();
}



