var mailchimp={form:g.d.getElementById("mc-embedded-subscribe-form"),load:function(){mailchimp.form.addEventListener("submit",function(e){mailchimp.validate();e.preventDefault();},0);},validate:function(){mailchimp.email=g.d.getElementById("mce-EMAIL").value;if(/^[A-Z0-9!#$%*\/?|\^{}`~&'+-=_]*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/i.test(mailchimp.email)){if(!site.xml.object)site.createxml();if(!site.xml.object){alert("ERROR\nCould not create XMLHTTP object.");return false;}site.xml.object.onreadystatechange=function(){if(site.xml.object.readyState==4){if(site.xml.object.status==200){site.xml.response=site.xml.object.responseXML;alert(site.xml.response.getElementsByTagName("resp")[0].firstChild.data);}else alert("ERROR\nServer responded with a "+site.xml.object.status+" error ("+site.xml.object.statusText.toLowerCase()+").");}};site.xml.object.open("POST","/xml/mailchimp/",true);site.xml.object.setRequestHeader("Content-Type","application/x-www-form-urlencoded");site.xml.object.send("email="+escape(mailchimp.email)+"&list="+escape(site.querystring(mailchimp.form.action,"id")));}else alert("Please provide a valid e-mail address");}};