function verifyEmail(emailAddr) { var i; var success = 0; var errTxt = "The email address you entered is not valid. You will not be able to submit this form until you enter a valid email address."; i = emailAddr.indexOf("@"); if (i == -1) { success = 0; document.getElementById('submitButton').disabled = true; alert(errTxt); return false; } var username = emailAddr.substring(0, i); var domain = emailAddr.substring(i + 1, emailAddr.length) i = 0; while ((username.substring(i, i + 1) == " ") && (i < username.length)) { i++; } if (i > 0) { username = username.substring(i, username.length); } i = domain.length - 1; while ((domain.substring(i, i + 1) == " ") && (i >= 0)) { i--; } if (i < (domain.length - 1)) { domain = domain.substring(0, i + 1); } if ((username == "") || (domain == "")) { success = 0; document.getElementById('submitButton').disabled = true; alert(errTxt); return false; } var ch; for (i = 0; i < username.length; i++) { ch = (username.substring(i, i + 1)).toLowerCase(); if (!(((ch >= "a") && (ch <= "z")) || ((ch >= "0") && (ch <= "9")) || (ch == "_") || (ch == "-") || (ch == "."))) { success = 0; document.getElementById('submitButton').disabled = true; alert(errTxt); return false; } } for (i = 0; i < domain.length; i++) { ch = (domain.substring(i, i + 1)).toLowerCase(); if (!(((ch >= "a") && (ch <= "z")) || ((ch >= "0") && (ch <= "9")) || (ch == "_") || (ch == "-") || (ch == "."))) { success = 0; document.getElementById('submitButton').disabled = true; alert(errTxt); return false; } } var aSuffix = new Array('ac','uk','ad','ae','af','ag','ai','al','am','an','ao','aq','ar','as','at','au','aw','az','ba','bb','bd','be','bf','bg','bh','bi','bj','bm','bn','bo','br','bs','bt','bv','bw','by','bz','ca','cc','cd','cf','cg','ch','ci','ck','cl','cm','cn','co','com','cr','cs','cu','cv','cx','cy','cz','de','dj','dk','dm','do','dz','ec','edu','ee','eg','eh','er','es','et','fi','fj','fk','fm','fo','fr','ga','gd','ge','gf','gg','gh','gi','gl','gm','gn','gov','gp','gq','gr','gs','South','gt','gu','gw','gy','hk','hm','hn','hr','ht','hu','id','ie','il','im','in','int','io','iq','ir','is','it','je','jm','jo','jp','ke','kg','kh','ki','km','kn','kp','Republic','kr','kw','ky','kz','la','Republic','lb','lc','li','lk','lr','ls','lt','lu','lv','ly','ma','mc','md','mg','mh','mil','mk','ml','mm','mn','mo','mp','mq','mr','ms','mt','mu','mv','mw','mx','my','mz','na','nc','ne','net','nf','ng','ni','nl','no','np','nr','nt','nu','nz','om','org','pa','pe','pf','pg','ph','pk','pl','pm','pn','pr','ps','pt','pw','py','qa','re','ro','ru','rw','sa','sb','sc','sd','se','sg','sh','si','sj','sk','sl','sm','sn','so','sr','sv','st','sy','sz','tc','td','tf','tg','th','tj','tk','tm','tn','to','tp','tr','tt','tv','tw','tz','ua','ug','uk','um','us','uy','uz','va','vc','ve','vg','vi','vn','vu','wf','ws','ye','yt','yu','za','zm','zw','aero','biz','coop','info','museum','name','pro'); var bFoundSuffix = false; i = 0; while (i < aSuffix.length) { if (("." + aSuffix[i]) == domain.substring(domain.length - aSuffix[i].length - 1, domain.length)) { document.getElementById('submitButton').disabled = false; return true; } i++; } document.getElementById('submitButton').disabled = true; alert(errTxt); return false; } function checkCheck() { if (document.all.gwnews.checked == false) { if (confirm('Are you sure about that?\n\nThe GW-News list offers:\n\n* Important information regarding updates.\n* Technical information about Window-Eyes.\n* News about GW Micro that you need to know.\n\nThis list is very low traffic, and only employees of GW Micro can post. You are assured high quality content in every message, and we will not sell or give away your e-mail address.\n\nAre you sure you want to turn down this free offer?') == false) { if (document.all.email.value == "") { alert('Great! We are happy to welcome you to the GW Micro family.\n\nIn order for us to complete this transaction, however, you will need to enter a valid e-mail address in the edit box above. Once your download is processed, a confirmation message will be sent to that e-mail address.\n\nIf you have any questions, please contact our technical support team at 260-489-3671, or via e-mail at support@gwmicro.com'); } else { alert('Great! We are happy to welcome you to the GW Micro family.\n\nOnce your download is processed, a confirmation message will be sent to ' + document.all.email.value + '.\n\nIf you have any questions, please contact our technical support team at 260-489-3671, or via e-mail at support@gwmicro.com'); } document.all.gwnews.checked = 1; document.all.gwnews.focus(); } else { alert('Well we can\'t force you to join, but we really think you should reconsider.\n\nIt is important to keep up to date with your software, and GW-News is a great way to do just that.\n\nIf you change your mind, just check the subscribe checkbox again, or visit our support page (http://www.gwmicro.com/support), and select the GW-News link.'); document.all.gwnews.checked = 0; document.all.gwnews.focus(); } } } function checkForm() { if ((document.getElementById('fname').value.length <= 1) || (document.getElementById('lname').value.length <= 1) || (document.getElementById('addr1').value.length <= 1) || (document.getElementById('city').value.length <= 1) || (document.getElementById('state').value.length <= 1) || (document.getElementById('country').value.length <= 1) || (document.getElementById('zip').value.length <= 1) || (document.getElementById('phone').value.length <= 1)) { alert('Some portions of this form were not filled out correctly. Please review the form and make sure that the requested information is entered.'); document.getElementById('fname').focus(); return false; } }