//########################################
//           ZOOM IMMAGINE
//########################################
function apri(url_foto,des_foto){
addr="fullsize.htm?"+url_foto+"&"+escape(des_foto)
alt=150
lar=150
rszb=(document.layers)?1:0;
props='height='+alt+',width='+lar+',top='+parseInt((screen.availHeight-alt)/2)+',left='+parseInt((screen.availWidth-lar)/2)+',scrollbars=0,resizable='+rszb+',toolbar=0,menubar=0,location=0,status=0';
window.open(addr,'_blank',props);
}
function openW(win,title,h,w,scroll) {
	var x;
	var y;
	var param;
	x = screen.width / 2 - w / 2;
	y = screen.height / 2 - (h / 2+20);
	param = "width="+w+",height="+h+",left="+x+",top="+y+",scrollbars="+scroll+",toolbar=0,location=0,directories=0,menuBar=0,resizable=0";
	windowDoPop=window.open(win,title,param);
	windowDoPop.focus();
}
function messaggio(testomessaggio) {
	alert(testomessaggio);
}
function validate(theForm){
	if (theForm.nome.value == "" || theForm.nome.value.length < 2){
		alert("E' necessario inserire il nome.");
		theForm.nome.focus();
		return false;
	}
	if (theForm.cognome.value == "" || theForm.cognome.value.length < 2){
		alert("E' necessario inserire il cognome.");
		theForm.cognome.focus();
		return false;
	}
	if (theForm.email.value == "" || theForm.email.value.indexOf('@',1)== -1 || theForm.email.value.indexOf('.',2)==-1){
		alert("E' necessario inserire una e-mail valida.");
		theForm.email.focus();
		return false;
	}
	if (theForm.commento.value == ""){
		alert("E' necessario inserire il commento.");
		theForm.commento.focus();
		return false;
	}
return true;
}
