// JavaScript Document
i=13;
function piu(){
i++;
document.getElementById('sottotitolo').style.fontSize=i + 'px';
document.getElementById('testo').style.fontSize=i + 'px';
return false;
}
function meno(){
i--;
document.getElementById('sottotitolo').style.fontSize=i + 'px';
document.getElementById('testo').style.fontSize=i + 'px';
return false;
}
function apri_commento(a)
{
msg= open([a],"titolo","buttons=no,scrollbars=no,location=no,menubar=no,resizable=no,status=no,directories=no,toolbar=no,width=550,height=680,resizable=yes"); 
}
function apri_smac(a)
{
msg= open([a],"titolo","buttons=no,scrollbars=no,location=no,menubar=no,resizable=no,status=no,directories=no,toolbar=no,width=856,height=634,resizable=yes"); 
}
function Invia()
{
 var nome_commento = document.invia_commento.nome_commento.value;
 var titolo_commento = document.invia_commento.titolo_commento.value;
 var testo_commento = document.invia_commento.testo_commento.value;
 var email_from = document.invia_commento.email_from.value;
 var codice = document.invia_commento.codice.value;
 if ((nome_commento == "") || (titolo_commento == "") || (testo_commento == "") || (email_from == ""))
 {
  alert("E' necessario compilare tutti i campi!");
  //document.modulo.testo.value = "";
  //document.modulo.testo.focus();
 }
 else 
							 		if(document.all){
											if (codice != document.getElementById("captcha").innerText)
											 {
											  alert("Il codice di sicurezza è errato!");
											
											  document.invia_commento.codice.value = "";
											  document.invia_commento.codice.focus();
											 }
											 else
											 {
											  document.invia_commento.method = "post";
											  document.invia_commento.action = "invia_commento_mail.asp";
											  document.invia_commento.submit();
											 }
									} else{
											 if (codice != document.getElementById("captcha").textContent)
											 {
											  alert("Il codice di sicurezza è errato!");
											
											  document.invia_commento.codice.value = "";
											  document.invia_commento.codice.focus();
											 }
											 else
											 {
											  document.invia_commento.method = "post";
											  document.invia_commento.action = "invia_commento_mail.asp";
											  document.invia_commento.submit();
											 }
}

							 
}
