var PeelGVScript=function(){function n(){}var t=function(){var i=document.getElementsByName("cm-name")[0].value,r=document.getElementsByName("email")[0].value,u="name="+i+"&email="+r,f="data="+encodeURIComponent(u),t=new XMLHttpRequest;t.addEventListener("load",n);t.open("GET","https://peelazuregoldvisionwebservice.azurewebsites.net/api/PeelGV/SendToGV?website=mediacity&"+f);t.send()},i=function(){var t=document.getElementById("footer-news-signup");t.addEventListener("submit",function(){var i=document.getElementsByName("cm-name")[0].value,r=document.getElementsByName("email")[0].value,u="name="+i+"&email="+r,f="data="+encodeURIComponent(u),t=new XMLHttpRequest;t.addEventListener("load",n);t.open("GET","https://peelazuregoldvisionwebservice.azurewebsites.net/api/PeelGV/SendToGV?website=mediacity&"+f);t.send();setTimeout(function(){form.submit()},1e3)})};return{SendFormData:t,BindFormEvent:i}}(window)