
// Funzione javascript che forza le submit php
function MySubmit(frm) {
  try {
  	document.getElementById(frm).submit();
  } catch(e) {
  	alert("Si è verificato un errore Javascript durante l'invio dei dati\n\n" + e.description);
    return false;
  }
}


// Funzione che apre a popup l'immagine selezionata tramite lightwindow.js
function LoadImage(imgname, w, h, title){
	image = imgname + '_big.png';
	url = 'http://www.progettoverde.com/template/images/pictures/'+image;
	myLightWindow = new lightwindow();
	myLightWindow.activateWindow({
			href: url, 
			title: title,
			loadingAnimation: false,
			type: 'external',
			width: w,
			height: h
			});
}