var count=0;function SubmitOnce(){if(count==0){count++;return true}else{return false}}function contactUs(A){contact=document.getElementById(A);contact.checked=true;window.location=contact.value}function setInitCountry(A){countryList=document.getElementById("country");for(i=0;i<countryList.length;i++){if(countryList.options[i].value==A){countryList.selectedIndex=i}}document.getElementById("email1").focus()}function changeLocale(){country=document.getElementById("country");zip=document.getElementById("zip");if(country.value=="US"){zip.disabled=false;zip.value="";zip.setAttribute("maxlength",10)}else{if(country.value=="CA"){zip.disabled=false;zip.value="";zip.setAttribute("maxlength",7)}else{zip.value="";zip.disabled=true}}return }function verifyForm(){email1=document.getElementById("email1").value;email2=document.getElementById("email2").value;country=document.getElementById("country").value;zip=document.getElementById("zip").value;var B="";if(email1+email2==""){var B="\n- Enter your email address twice (for verification)"}else{var A=/^([a-zA-Z0-9_'+*$%\^&!\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9:]{2,4})+$/;if((email1=="")||(email2=="")){var B="\n- Re-enter your email address (for verification)"}else{if(email1!=email2){var B="\n- Check that your email address is entered correctly"}else{if(A.test(email1)!=true){var B="\n- Enter a valid email address"}}}}if(country=="US"){var C=/^\d{5}([\-]?\d{4})?$/;if(zip==""){var B=B+"\n- Enter your zip code"}else{if(C.test(zip)!=true){var B=B+"\n- Enter a valid U.S. ZIP code"}}}else{if(country=="CA"){var C=/^[AaBbCcEeGgHhJjKkLlMmNnPpRrSsTtVvXxYy]\d[A-Za-z]\s?\d[A-Za-z]\d$/;if(zip==""){var B=B+"\n- Enter your postal code"}else{if(C.test(zip)!=true){var B=B+"\n- Enter a valid Canadian postal code"}}}else{if(country==""){var B=B+"\n- Select your country"}}}if(B==""){return true}else{var B="Before continuing, please:\n"+B;alert(B);return false}}if(window.attachEvent){window.attachEvent("onload",setListeners)}function setListeners(){inputList=document.getElementsByTagName("INPUT");for(i=0;i<inputList.length;i++){inputList[i].attachEvent("onpropertychange",restoreStyles);inputList[i].style.backgroundColor=""}selectList=document.getElementsByTagName("SELECT");for(i=0;i<selectList.length;i++){selectList[i].attachEvent("onpropertychange",restoreStyles);selectList[i].style.backgroundColor=""}}function restoreStyles(){if(event.srcElement.style.backgroundColor!=""){event.srcElement.style.backgroundColor=""}};
