<script type="text/javascript"><!-- [et_pb_line_break_holder] --> /* This script prevents the submission of a NR Form if the email address submitted has a domain matching any of those in the array named arrFreeMailProviders */<!-- [et_pb_line_break_holder] --> /* Requirements: The "Element Name" of the email field must, on the "Advanced" tab in the Net-Results Form Builder, have a value of "email" (or this script must be adjusted to match whatever value it has). */<!-- [et_pb_line_break_holder] --> document.addEventListener("DOMContentLoaded", function() {<!-- [et_pb_line_break_holder] --> var arrFreeMailProviders = ['@aol.com', '@gmail.com', '@yahoo.com', '@yahoo.co.uk', '@hotmail.com', '@hotmail.co.uk', '@gmx.de', '@web.de', '@rogers.com', '@googlemail.com', '@live.com', '@me.com', '@outlook.com', '@mac.com', '@o2.pl', '@t-online.de', '@msn.com', '@bellsouth.net', '@mailinator.com', '@icloud.com', '@hotmail.fr', '@yahoo.fr', '@wanadoo.fr', '@orange.fr', '@comcast.net', '@yahoo.co.uk', '@yahoo.com.br', '@yahoo.co.in', '@rediffmail.com', '@free.fr', '@yandex.ru', '@ymail.com', '@libero.it', '@uol.com.br', '@bol.com.br', '@mail.ru', '@cox.net', '@hotmail.it', '@sbcglobal.net', '@sfr.fr', '@live.fr', '@verizon.net', '@live.co.uk', '@yahoo.es', '@ig.com.br', '@live.nl', '@bigpond.com', '@terra.com.br', '@yahoo.it', '@neuf.fr', '@yahoo.de', '@alice.it', '@rocketmail.com', '@att.net', '@laposte.net', '@facebook.com', '@yahoo.in', '@hotmail.es', '@charter.net', '@yahoo.ca', '@yahoo.com.au', '@rambler.ru', '@hotmail.de', '@tiscali.it', '@shaw.ca', '@yahoo.co.jp', '@sky.com', '@earthlink.net', '@optonline.net', '@freenet.de', '@aliceadsl.fr', '@virgilio.it', '@home.nl', '@qq.com', '@telenet.be', '@yahoo.com.ar', '@tiscali.co.uk', '@yahoo.com.mx', '@voila.fr', '@gmx.net', '@mail.com', '@planet.nl', '@tin.it', '@live.it', '@ntlworld.com', '@arcor.de', '@yahoo.co.id', '@frontiernet.net', '@hetnet.nl', '@live.com.au', '@yahoo.com.sg', '@zonnet.nl', '@club-internet.fr', '@juno.com', '@optusnet.com.au', '@blueyonder.co.uk', '@bluewin.ch', '@skynet.be', '@sympatico.ca', '@windstream.net', '@centurytel.net', '@chello.nl', '@live.ca', '@aim.com', '@bigpond.net.au'];<!-- [et_pb_line_break_holder] --> var id = setInterval(function() {<!-- [et_pb_line_break_holder] --> var form = document.querySelector("form.maForm");<!-- [et_pb_line_break_holder] --> if (form !== null && form.length > 0) {<!-- [et_pb_line_break_holder] --> clearInterval(id);<!-- [et_pb_line_break_holder] --> var inputEmail = document.querySelector("form.maForm input[name='email']"),<!-- [et_pb_line_break_holder] --> btnSubmit = document.querySelector("form.maForm button[type='submit']");<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --> form.onsubmit = function(e) {<!-- [et_pb_line_break_holder] --> e.preventDefault();<!-- [et_pb_line_break_holder] --> var strDomain = getDomainNameFromEmailAddress(inputEmail.value);<!-- [et_pb_line_break_holder] --> if (arrFreeMailProviders.indexOf(strDomain) > 0) {<!-- [et_pb_line_break_holder] --> inputEmail.style.border = '1px solid red';<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --> var span = document.createElement('span');<!-- [et_pb_line_break_holder] --> span.setAttribute('id', 'espEmailError');<!-- [et_pb_line_break_holder] --> span.textContent = "Please use your business email address.";<!-- [et_pb_line_break_holder] --> span.style.fontSize = '0.9em';<!-- [et_pb_line_break_holder] --> span.style.display = 'inline-block';<!-- [et_pb_line_break_holder] --> span.style.marginBottom = '2em';<!-- [et_pb_line_break_holder] --> span.style.color = 'red';<!-- [et_pb_line_break_holder] --> span.style.transition = 'all 0.25s';<!-- [et_pb_line_break_holder] --> inputEmail.parentNode.appendChild(span);<!-- [et_pb_line_break_holder] --> } else {<!-- [et_pb_line_break_holder] --> form.submit();<!-- [et_pb_line_break_holder] --> }<!-- [et_pb_line_break_holder] --> };<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --> inputEmail.onfocus = function() {<!-- [et_pb_line_break_holder] --> inputEmail.style.border = 'inherit';<!-- [et_pb_line_break_holder] --> if (document.getElementById('espEmailError') !== null) {<!-- [et_pb_line_break_holder] --> document.getElementById('espEmailError').remove();<!-- [et_pb_line_break_holder] --> btnSubmit.disabled = false;<!-- [et_pb_line_break_holder] --> }<!-- [et_pb_line_break_holder] --> }<!-- [et_pb_line_break_holder] --> }<!-- [et_pb_line_break_holder] --> }, 30);<!-- [et_pb_line_break_holder] --> });<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --> function getDomainNameFromEmailAddress(strEmail) {<!-- [et_pb_line_break_holder] --> var domainFound = false, n = strEmail.indexOf('@');<!-- [et_pb_line_break_holder] --> if (n > 0) {<!-- [et_pb_line_break_holder] --> var domain = strEmail.substring(n);<!-- [et_pb_line_break_holder] --> domainFound = true;<!-- [et_pb_line_break_holder] --> }<!-- [et_pb_line_break_holder] --> if (domainFound === true) {<!-- [et_pb_line_break_holder] --> return domain;<!-- [et_pb_line_break_holder] --> } else {<!-- [et_pb_line_break_holder] --> return false;<!-- [et_pb_line_break_holder] --> }<!-- [et_pb_line_break_holder] --> }<!-- [et_pb_line_break_holder] --></script><!-- [et_pb_line_break_holder] -->