var Email=function(){function l(){var a=!1;try{a=new ActiveXObject("Msxml2.XMLHTTP")}catch(d){try{a=new ActiveXObject("Microsoft.XMLHTTP")}catch(b){try{a=new XMLHttpRequest}catch(e){a=!1}}}return a}function m(a,d){var b=l();b.open("POST",a,!0);b.setRequestHeader("Content-Type","application/x-www-form-urlencoded");b.onreadystatechange=function(){if(4==b.readyState&&""!=b.responseText){var a=eval("("+b.responseText+")");!1==a.AllOk?(document.getElementById("Waiting").style.display="none",document.getElementById("EmailButton").style.left=
"0px",document.getElementById("EmailResult").innerHTML=a.Message,!1==a.Nominativo?(document.getElementById("LblNominativo").style.color="#FF0000",document.getElementById("LblNominativo").style.fontWeight="bold"):(document.getElementById("LblNominativo").style.color="#000000",document.getElementById("LblNominativo").style.fontWeight="normal"),!1==a.Email?(document.getElementById("LblEmail").style.color="#FF0000",document.getElementById("LblEmail").style.fontWeight="bold"):(document.getElementById("LblEmail").style.color=
"#000000",document.getElementById("LblEmail").style.fontWeight="normal"),!1==a.Messaggio?(document.getElementById("LblMessaggio").style.color="#FF0000",document.getElementById("LblMessaggio").style.fontWeight="bold"):(document.getElementById("LblMessaggio").style.color="#000000",document.getElementById("LblMessaggio").style.fontWeight="normal")):(document.getElementById("EmailForm").style.display="none",document.getElementById("EmailResult").innerHTML=a.Message)}};var e=n(d);b.send(e)}function n(a){for(var d=
"",a=document.forms[a].elements,b=0;b<a.length;b++){var e=a[b];e.type.toUpperCase();var c=e.value,d=d+((0<d.length?"&":"")+escape(e.name).replace(/\+/g,"%2B")+"="+escape(c?c:"").replace(/\+/g,"%2B"))}return d}function o(){var a=!1;c+=g;1<=c&&(c=1,window.clearInterval(f),a=!0);document.getElementById("EmailButton").style.left=Math.floor(320*c)+"px";if(!0==a)window.clearInterval(f),document.getElementById("Waiting").style.display="block",m(h,i,j,k)}var f=0,c=0,g=0,h="",i="",j="",k="";return{Go:function(a,
d,b,c){h=a;i=d;j=b;k=c;g=0.1;f=window.setInterval(o,33)}}}();
