<!-- 
var indirizzi=new Array(".it",".com",".org",".bz",".eu",".net")

function true_email(tag_form){
var flag=false
var scheda=eval(tag_form)//document.forms.info_richiesta
var email_crtl=scheda.value

if(email_crtl==""){
alert("Il campo 'E-mail' è obbligatorio")
scheda.focus()
return true
}

if(email_crtl.indexOf("@") == -1){
alert("digitare un indirizzo email valido")
scheda.focus()
return true
}

for (var a=0;a < indirizzi.length;a++){
	
	if(email_crtl.indexOf(indirizzi[a])>=0 ){
	flag=true
	break}
	}
	if(!flag){
	alert("digitare un indirizzo email valido")
	return true
	}
return false
}

function info_msg(){

var stringa_info=""
scheda=document.forms.modulo_msg
scheda_email=document.forms.modulo_msg.email_msg
if(scheda.cognome_msg.value == "" ){
alert("Il 'Cognome'   è obbligatorio")
scheda.cognome_msg.focus()
return
}


stringa_info+=scheda.cognome_msg.value +"|"

if(scheda.nome_msg.value == "" ){
alert("Il 'Nome'   è obbligatorio")
scheda.nome_msg.focus()
return
}

stringa_info+=scheda.nome_msg.value +"|"

if(scheda.citta_msg.value == "" ){
scheda.citta_msg.value=" "
}
stringa_info+=scheda.citta_msg.value +"|"

if(true_email(scheda_email)){return}
stringa_info+=scheda.email_msg.value +"|"

if(scheda.telefono_msg.value == "" ){
scheda.telefono_msg.value=" "
}
stringa_info+=scheda.telefono_msg.value +"|"

if(scheda.messaggio_msg.value == "" ){
alert("Nessuna informazione richiesta")
scheda.messaggio_msg.focus()
return
}
stringa_info+=scheda.messaggio_msg.value +"|"

if(!scheda.leggi_msg.checked){
alert("Devi acconsentire il trattamento dei dati")
return
}


var head = document.getElementsByTagName('head').item(0);
	var scriptTag = document.getElementById('loadScript');
	if (scriptTag) head.removeChild(scriptTag);
	script = document.createElement('script');

	script.src ='get_richiesta_info.asp?messaggio='+stringa_info;
	script.type = 'text/javascript';
	script.id = 'loadScript';
	head.appendChild(script);


}
 //-->

