var states = new Array(62); states["none"] = "-- Please Select State --"; states["AL"] = "Alabama"; states["AK"] = "Alaska"; states["AZ"] = "Arizona"; states["AR"] = "Arkansas"; states["CA"] = "California"; states["CO"] = "Colorado"; states["CT"] = "Connecticut"; states["DE"] = "Delaware"; states["DC"] = "District of Columbia"; states["FL"] = "Florida"; states["GA"] = "Georgia"; states["HI"] = "Hawaii"; states["ID"] = "Idaho"; states["IL"] = "Illinois"; states["IN"] = "Indiana"; states["IA"] = "Iowa"; states["KS"] = "Kansas"; states["KY"] = "Kentucky"; states["LA"] = "Louisiana"; states["ME"] = "Maine"; states["MD"] = "Maryland"; states["MA"] = "Massachusetts"; states["MI"] = "Michigan"; states["MN"] = "Minnesota"; states["MS"] = "Mississippi"; states["MO"] = "Missouri"; states["MT"] = "Montana"; states["NE"] = "Nebraska"; states["NV"] = "Nevada"; states["NH"] = "New Hampshire"; states["NJ"] = "New Jersey"; states["NM"] = "New Mexico"; states["NY"] = "New York"; states["NC"] = "North Carolina"; states["ND"] = "North Dakota"; states["OH"] = "Ohio"; states["OK"] = "Oklahoma"; states["OR"] = "Oregon"; states["PA"] = "Pennsylvania"; states["RI"] = "Rhode Island"; states["SC"] = "South Carolina"; states["SD"] = "South Dakota"; states["TN"] = "Tennessee"; states["TX"] = "Texas"; states["UT"] = "Utah"; states["VT"] = "Vermont"; states["VA"] = "Virginia"; states["WA"] = "Washington"; states["WV"] = "West Virginia"; states["WI"] = "Wisconsin"; states["WY"] = "Wyoming"; states["PR"] = "Puerto Rico"; states["VI"] = "U.S. Virgin Islands"; states["MP"] = "Northern Mariana Is."; states["GU"] = "Guam"; states["AS"] = "American Samoa"; states["PW"] = "Palau"; states["AA"] = "Armed Forces Americas"; states["AE"] = "Armed Forces Europe"; states["AP"] = "Armed Forces Pacific"; states["US"] = "United States Federal"; var provinces = new Array(13); provinces["none" ] = "-- Please Select Province --"; provinces["AB"] = "Alberta"; provinces["BC"] = "British Columbia"; provinces["MB"] = "Manitoba"; provinces["NB"] = "New Brunswick"; provinces["NL"] = "Newfoundland/Labrador"; provinces["NS"] = "Nova Scotia"; provinces["NT"] = "Northwest Territories"; provinces["NU"] = "Nunavut"; provinces["ON"] = "Ontario"; provinces["PE"] = "Prince Edward Island"; provinces["QC"] = "Quebec"; provinces["SK"] = "Saskatchewan"; provinces["YT"] = "Yukon"; var selected_state = ""; function validatePACTSignupForm(f){ if(!validatePACTFields(f)){ return false; } if(!validateTerms(f)){ return false; } return true; } function validateFACTSignupForm(f){ if(!validatePACTFields(f)){ return false; } if(!validateFACTFields(f)){ return false; } if(!validateTerms(f)){ return false; } return true; } function validateRMEnableForm(f){ if(!validateFACTFields(f)){ return false; } if(!validateTerms(f)){ return false; } return true; } function validateAFFSignupForm(f){ if(!validatePACTFields(f)){ return false; } if(!validateFACTFields(f)){ return false; } //validate aff form vars if(!validateAFFFields(f)){ return false; } if(!validateTerms(f)){ return false; } return true; } function validateAFFEPSignupForm(f){ if (f.nickname.value.length == 0) { alert("Bitte geben Sie Ihr Benutzername ein."); f.nickname.focus(); return false; } if (f.password1.value.length == 0) { alert("Bitte geben Sie ein Passwort ein. Ihr Passwort MUSS zwischen 8-12 Zeichen lang sein und MUSS Buchstaben als AUCH Zahlen enthalten. Bitte versuchen Sie ein neues Passwort."); f.password1.focus(); return false; } if (!isValid(f.aff_agreement, "checkbox")) { alert("Sie müssen bestätigen dass Sie die Allgemeine Geschäftsbedingungen zustimmen. Sie müssen zustimmen bevor Sie ihr Konto aktivieren können."); f.aff_agreement.focus(); return false; } return true; } function validatePACTFields(f) { // validate nickname if (f.nickname.value.length == 0) { alert("Bitte geben Sie Ihr Benutzername ein."); f.nickname.focus(); return false; } if ((f.nickname.value.length < 2) || (f.nickname.value.length > 12)) { alert("Sie haben einen ungültigen Benutzernamen angegeben. Bitte wählen Sie einen Benutzernamen zwischen 2 und 12 Buchstaben und/oder Nummern aus. Sie können keine besondere Symbole benutzen."); f.nickname.focus(); return false; } // validate email if (f.email.value.length == 0) { alert("Bitte geben Sie ihre E-mail Adresse ein."); f.email.focus(); return false; } if (f.email.value != f.email1.value) { alert("Die Passwörter, die Sie eingegeben haben, übereinstimmen nicht. Bitte noch einmal versuchen."); f.email.focus(); return false; } var i = 1; var s = f.email.value; var l = s.length; while ((i < l) && (s.charAt(i) != "@")) { i++; } if ((i >= l) || (s.charAt(i) != "@")) { alert("Sie haben eine ungültige Adresse angegeben. Bitte geben Sie ihre ganze E-mail Adresse ein. (z.B. name@server.com)."); f.email.focus(); return false; } else { i += 2; } while ((i < l) && (s.charAt(i) != ".")) { i++; } if ((i >= l - 1) || (s.charAt(i) != ".")) { alert("Sie haben eine ungültige Adresse angegeben. Bitte geben Sie ihre ganze E-mail Adresse ein.\n(z.B. name@server.com)."); f.email.focus(); return false; } // validate password if (f.password1.value.length == 0) { alert("Bitte geben Sie ein Passwort ein. Ihr Passwort MUSS zwischen 8-12 Zeichen lang sein und MUSS Buchstaben als AUCH Zahlen enthalten. Bitte versuchen Sie ein neues Passwort."); f.password1.focus(); return false; } var numberOfDigits = 0; var numberOfLetters = 0; var numberOfGarbageChars = 0; s = f.password1.value; for (i = 0; i < s.length; i++) { var c = s.charAt(i); if ( ((c >= "a") && (c <= "z")) || ((c >= "A") && (c <= "Z")) ) { numberOfLetters++; } else if ((c >= "0") && (c <= "9")) { numberOfDigits++; } else { numberOfGarbageChars++; } } if (numberOfGarbageChars > 0) { alert("Bitte geben Sie ein Passwort ein. Ihr Passwort MUSS zwischen 8-12 Zeichen lang sein und MUSS Buchstaben als AUCH Zahlen enthalten. Bitte versuchen Sie ein neues Passwort."); f.password1.focus(); return false; } if (((f.password1.value.length < 8) || (f.password1.value.length > 12)) && ((numberOfDigits == 0) || (numberOfLetters == 0))) { alert("Bitte geben Sie ein Passwort ein. Ihr Passwort MUSS zwischen 8-12 Zeichen lang sein und MUSS Buchstaben als AUCH Zahlen enthalten. Bitte versuchen Sie ein neues Passwort."); f.password1.focus(); return false; } else if ((numberOfDigits == 0) || (numberOfLetters == 0)) { alert("Bitte geben Sie ein Passwort ein. Ihr Passwort MUSS zwischen 8-12 Zeichen lang sein und MUSS Buchstaben als AUCH Zahlen enthalten. Bitte versuchen Sie ein neues Passwort."); f.password1.focus(); return false; } else if ((f.password1.value.length < 8) || (f.password1.value.length > 12)) { alert("Bitte geben Sie ein Passwort ein. Ihr Passwort MUSS zwischen 8-12 Zeichen lang sein und MUSS Buchstaben als AUCH Zahlen enthalten. Bitte versuchen Sie ein neues Passwort."); f.password1.focus(); return false; } if (f.password2.value.length == 0) { alert("Sie haben ihr Passwort das zweiten mal nicht zur Verifikation eingegben. Bitte ihr Passwort im zweiten Passwort Feld noch einmal eingeben."); f.password2.focus(); return false; } if (f.password1.value != f.password2.value) { alert("Die Passwörter, die Sie eingegeben haben, übereinstimmen nicht. Bitte noch einmal versuchen."); f.password1.focus(); return false; } return true; //confirmSignupWindow(f); } function validateFACTFields(f) { if (!isValid(f.title, "select")) { alert("Sie haben ihre Anrede nicht eingegeben (z.B.. Herr, Frau)"); f.title.focus(); return false; } if (!isValid(f.firstName, "text")) { alert("Sie haben ihren Vorname nicht eingegeben."); f.firstName.focus(); return false; } if (!isValid(f.lastName, "text")) { alert("Sie haben ihren Familienname nicht eingegeben."); f.lastName.focus(); return false; } if (f.country[f.country.selectedIndex].value == "none") { alert("Sie haben ihr Land nicht eingegeben."); f.country.focus(); return false; } if(f.country.value == "US"){ if (f.state[f.state.selectedIndex].value == "none") { alert("Sie haben ihre Region nicht eingegeben."); f.state.focus(); return false; } } else if(f.country.value == "CA"){ if (f.state[f.state.selectedIndex].value == "none") { alert("Sie haben ihre Region nicht eingegeben."); f.state.focus(); return false; } } else if(!isValid(f.province, "text")){ alert("Sie haben ihre Region nicht eingegeben."); f.province.focus(); return false; } if (!isValid(f.city, "text")) { alert("Sie haben ihre Stadt nicht eingegeben."); f.city.focus(); return false; } if (!isValid(f.address1, "text")) { alert("Sie haben ihre Adresse nicht eingegeben."); f.address1.focus(); return false; } if (!isValid(f.zip, "text")) { alert("Sie haben ihre Postleitzahl nicht eingegeben."); f.zip.focus(); return false; } // if (f.timeZone.options[f.timeZone.selectedIndex].value == 'none') // { // alert("Please select a time zone."); // f.timeZone.focus(); // return false; // } if (!isValid(f.phone, "text")) { alert("Sie haben ihre Telefon-Nummer nicht eingegeben."); f.phone.focus(); return false; } if (!isValid(f.year_of_birth, "select")) { alert("Sie haben ihr Geburtsjahr nicht eingegeben."); f.year_of_birth.focus(); return false; } if (!isValid(f.month_of_birth, "select")) { alert("Sie haben ihr Geburtsmonat nicht eingegeben."); f.month_of_birth.focus(); return false; } if (!isValid(f.day_of_birth, "select")) { alert("Sie haben ihrem Geburtsdatum nicht eingegeben."); f.day_of_birth.focus(); return false; } return true; //confirmSignupWindow(f); } function validateTerms(f){ if (!isValid(f.terms, "checkbox")) { alert("Please acknowledge that you agree to the terms and conditions! You have to do this before you can activate your account."); f.terms.focus(); return false; } if (!isValid(f.ru21, "checkbox")) { alert("If you are over 18, please tick the I am over 18 checkbox. We can't let you play unless you are over 18 and you check it off."); f.ru21.focus(); return false; } return true; } function validateAFFFields(f){ /*if (!isValid(f.company, "text")){ alert("Please supply the name of your company"); f.company.focus(); return false; } */ if ((!isValid(f.webpage, "text") || f.webpage.value == 'http://') && f.method_website.checked){ alert("Please supply the URL of your main promotional website"); f.webpage.focus(); return false; } if(!f.method_website.checked && f.aff_plea.value == ""){ alert("If you are not promoting via a website, you must explain how you intend to promote Tower Gaming"); f.aff_plea.focus(); return false; } if(!isValid(f.hear, "select")){ alert("How did you hear about us?"); f.hear.focus(); return false; } if(!isValid(f.pay_method, "select")){ alert("Please choose your method of payment. This option may be changed later."); f.pay_method.focus(); return false; } if (!isValid(f.aff_agreement, "checkbox")) { alert("Please acknowledge that you agree to the affiliate agreement! You have to do this before you can activate your account."); f.aff_agreement.focus(); return false; } if(f.pay_method.value == "NETeller"){ if(!isValid(f.pay_agreement, "checkbox")){ alert("If you choose NETeller as your payment method, you must agree to have your funds transferred to " + f.nickname.value + "'s Tower Gaming Player account until you have made a NETeller deposit"); return false; } } if(f.pay_method.value == "MoneyBookers"){ if(!isValid(f.pay_agreement, "checkbox")){ alert("If you choose MoneyBookers as your payment method, you must agree to have your funds transferred to " + f.nickname.value + "'s Tower Gaming Player account until you have made a MoneyBookers deposit"); return false; } } return true; } function isValid(obj, objType) { if (objType == "text") { if (obj.value.length == 0) return false; else return true; } else if (objType == "select") { if (obj.options[0].selected) return false; else return true; } else if (objType == "checkbox") { if (obj.checked) return true; else return false; } return true; } function updateStates(){ if(document.signup_form.country.value == "US"){ document.forms['signup_form'].state.options.length = 0; var j = 0; var set_state = j; for (var i in states){ if(i == selected_state && selected_state){ document.forms['signup_form'].state.options[j] = new Option(states[i], i, true); } else{ document.forms['signup_form'].state.options[j] = new Option(states[i], i); } j++; } //document.forms['signup_form'].state.selectedIndex = j; document.getElementById("show_province").style.display = "none"; document.getElementById("show_state").style.display = ""; document.getElementById("state_province").innerHTML = "State"; document.getElementById("zip_postal").innerHTML = "Zip Code"; document.forms['signup_form'].state.focus(); } else if(document.signup_form.country.value == "CA"){ //alert("country is CA"); document.forms['signup_form'].state.options.length = 0; var j = 0; var set_state = j; for (var i in provinces){ if(i == selected_state && selected_state){ document.forms['signup_form'].state.options[j] = new Option(provinces[i], i, true); } else{ document.forms['signup_form'].state.options[j] = new Option(provinces[i], i); } j++; } //document.forms['signup_form'].state.selectedIndex = j; document.getElementById("state_province").innerHTML = "Province"; document.getElementById("zip_postal").innerHTML = "Postal Code"; document.getElementById("show_province").style.display = "none"; document.getElementById("show_state").style.display = ""; document.forms['signup_form'].state.focus(); } else{ document.getElementById("state_province").innerHTML = "State/Province"; document.getElementById("zip_postal").innerHTML = "Zip/Postal Code"; document.getElementById("show_state").style.display = "none"; document.getElementById("show_province").style.display = ""; document.forms['signup_form'].province.focus(); } return true; } function setState(){ selected_state = document.forms['signup_form'].state.value; } function update_pay_disclaimer(isChecked){ var payfield = document.signup_form.pay_method; if(payfield.value == 'TG'){ document.getElementById("payment_disclaimer").innerHTML = "Payments will be made to your Tower Gaming Player Account.
You can access these funds by logging into Tower Gaming with your affiliate Nickname/Password."; document.getElementById("pay_agreement").innerHTML = ""; } else if(payfield.value == 'NETeller'){ document.getElementById("payment_disclaimer").innerHTML = "Payments will be made to your Neteller Account.
Neteller payment require an initial Neteller deposit to Tower Gaming. This deposit allows Tower Gaming to gather your NETeller information and validate your account."; document.getElementById("pay_agreement").innerHTML = " I agree to have my commission transferred to my Tower Gaming account until I make a Neteller deposit."; if(isChecked){ document.signup_form.pay_agreement.checked = true; } } else if(payfield.value == 'MoneyBookers'){ document.getElementById("payment_disclaimer").innerHTML = "Payments will be made to your MoneyBookers Account.
Tower Affiliates requires you to make a MoneyBookers deposit through Tower Gaming.
This precaution authorizes your MoneyBookers account and ensures that the account is valid before we transfer your payments to it.
"; document.getElementById("pay_agreement").innerHTML = " I agree to have my commission transferred to my Tower Gaming account until I make a MoneyBookers deposit."; if(isChecked){ document.signup_form.pay_agreement.checked = true; } } else if(payfield.value == 'IHMoneyBookers'){ document.getElementById("payment_disclaimer").innerHTML = "Payments will be made to your MoneyBookers Account.

"; document.getElementById("pay_agreement").innerHTML = " I agree to have my commission held by Tower Gaming until I have supplied my proper MoneyBookers account information."; if(isChecked){ document.signup_form.pay_agreement.checked = true; } } else if(payfield.value == 'Check'){ document.getElementById("payment_disclaimer").innerHTML = "Payments will be sent to you via Courier Check. There is a $30 fee for courier check delivery."; document.getElementById("pay_agreement").innerHTML = ""; } else{ document.getElementById("payment_disclaimer").innerHTML = ""; document.getElementById("pay_agreement").innerHTML = ""; } } function update_plea(){ if(!document.forms['signup_form'].method_website.checked){ document.getElementById("plea").style.display = ''; document.getElementById("aff_mainsite_url").style.display = 'none'; } else{ document.getElementById("plea").style.display = 'none'; document.getElementById("aff_mainsite_url").style.display = ''; } } function validateEditInfoForm(f) { if (f.country[f.country.selectedIndex].value == "none") { alert("Sie haben ihr Land nicht eingegeben."); f.country.focus(); return false; } if(f.country.value == "US"){ if (f.state[f.state.selectedIndex].value == "none") { alert("Sie haben ihre Region nicht eingegeben."); f.state.focus(); return false; } } else if(f.country.value == "CA"){ if (f.state[f.state.selectedIndex].value == "none") { alert("Sie haben ihre Region nicht eingegeben."); f.state.focus(); return false; } } else if(!isValid(f.province, "text")){ alert("Sie haben ihre Region nicht eingegeben."); f.province.focus(); return false; } if (!isValid(f.city, "text")) { alert("Sie haben ihre Stadt nicht eingegeben."); f.city.focus(); return false; } if (!isValid(f.address1, "text")) { alert("Sie haben ihre Adresse nicht eingegeben."); f.address1.focus(); return false; } if (!isValid(f.zip, "text")) { alert("Sie haben ihre Postleitzahl nicht eingegeben."); f.zip.focus(); return false; } // if (f.timeZone.options[f.timeZone.selectedIndex].value == 'none') // { // alert("Please select a time zone."); // f.timeZone.focus(); // return false; // } if (!isValid(f.phone, "text")) { alert("Sie haben ihre Telefon-Nummer nicht eingegeben."); f.phone.focus(); return false; } if (!isValid(f.year_of_birth, "select")) { alert("Sie haben ihr Geburtsjahr nicht eingegeben."); f.year_of_birth.focus(); return false; } if (!isValid(f.month_of_birth, "select")) { alert("Sie haben ihr Geburtsmonat nicht eingegeben."); f.month_of_birth.focus(); return false; } if (!isValid(f.day_of_birth, "select")) { alert("Sie haben ihrem Geburtsdatum nicht eingegeben."); f.day_of_birth.focus(); return false; } } function updateSignupCode(){ var hear = document.signup_form.hear[document.signup_form.hear.selectedIndex].value; if(hear == "aff_ref"){ document.getElementById("aff_signup_code").style.display = ""; } else{ document.getElementById("aff_signup_code").style.display = "none"; } } function handlePaymentSelection(){ var paytype = document.signup_form.pay_method[document.signup_form.pay_method.selectedIndex].value; if(paytype == "IHMoneyBookers"){ document.getElementById("moneybookers_acct").style.display = ""; } else{ document.getElementById("moneybookers_acct").style.display = "none"; } }