function popUp(URL,target,parent){day=new Date();id=day.getTime();eval("page"+id+" = window.open(URL, '"+id+"', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=397,height=170,left = 465,top = 337');")}function validate(){if(document.SignupForm.nameFirstEntry.value==""){alert("You must Provide the Firstname!");document.SignupForm.nameFirstEntry.focus();return false}if(document.SignupForm.nameLastEntry.value==""){alert("You must Provide the Lastname!");document.SignupForm.nameLastEntry.focus();return false}if(document.SignupForm.emailEntry.value==""){alert("You must Provide the Email!");document.SignupForm.emailEntry.focus();return false}if(document.SignupForm.emailEntry.value!=document.SignupForm.emailEntry2.value){alert("The confirmation did not match the email entered!");document.SignupForm.emailEntry2.focus();return false}if((document.SignupForm.radio1[0].checked)||(document.SignupForm.radio1[1].checked)){}else{alert("You must select one option");document.SignupForm.radio1[0].focus();return false}if(document.SignupForm.radio1[0].checked){if(document.SignupForm.homePhoneEntry.value==""){alert("You must Provide the Phone Number!");document.SignupForm.homePhoneEntry.focus();return false}}if(document.SignupForm.address1Entry.value==""){alert("You must Provide the Address!");document.SignupForm.address1Entry.focus();return false}if(document.SignupForm.cityEntry.value==""){alert("You must Provide the City!");document.SignupForm.cityEntry.focus();return false}if(document.SignupForm.stateEntry.value==""){alert("You must Select the State!");document.SignupForm.stateEntry.focus();return false}if(document.SignupForm.zipEntry.value==""){alert("You must Provide the Zip!");document.SignupForm.zipEntry.focus();return false}if(document.SignupForm.passwordEntry.value==""){alert("You must Provide the Password!");document.SignupForm.passwordEntry.focus();return false}if(document.SignupForm.passwordEntry.length<4){alert("Invalid password entered!");document.SignupForm.passwordEntry.focus();return false}if(document.SignupForm.confirmPasswordEntry.value!=document.SignupForm.passwordEntry.value){alert("The confirmation did not match the password entered!");document.SignupForm.confirmPasswordEntry.focus();return false}if(document.SignupForm.SecurityEntry.value==""){alert("You must Provide the Security ?");document.SignupForm.SecurityEntry.focus();return false}if(document.SignupForm.AnswerEntry.value==""){alert("You must Provide the Security Answer");document.SignupForm.AnswerEntry.focus();return false}if(document.SignupForm.age.checked==false){alert("You must check the Age!");document.SignupForm.age.focus();return false}if(document.SignupForm.terms.checked==false){alert("You must accept the terms and conditions!");document.SignupForm.age.focus();return false}if(document.SignupForm.hear.value=="Other"){if(document.SignupForm.hear2.value==""){alert("Please specify Where do you hear about us");document.SignupForm.hear2.focus();return false}}document.SignupForm.submit();return true}function getCookie(C){var A;var B;A=document.cookie.indexOf(C+"=");if(A<0){B=""}else{A=document.cookie.indexOf("=",A);A++;cookieEnd=document.cookie.indexOf(";",A);if(cookieEnd==-1){cookieEnd=document.cookie.length}B=document.cookie.substring(A,cookieEnd)}return B}function prefill(){document.SignupForm.referredByEntry.value=getCookie("affiliate_id")}function ajaxLoader(D,F){var C="";if(document.getElementById){var A=(window.ActiveXObject)?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest()}if(A){A.onreadystatechange=function(){if(A.readyState==4&&A.status==200){el=document.getElementById(F);var G=A.responseText;if(G!=""){document.SignupForm.emailEntry.select()}el.innerHTML=G}};var B=document.getElementById("emailEntry");B=B.value;var E=D+"?email="+B;A.open("GET",E,true);A.send(null)}}function Races(){if(document.Loginform.customerID.value==""){alert("Please enter your LoginID");document.Loginform.customerID.focus();return false}if(document.Loginform.password.value==""){alert("Please enter your password");document.Loginform.password.focus();return false}document.Loginform.races.value=1;document.Loginform.submit();return true}function Races2(){if(document.Loginform2.customerID.value==""){alert("Please enter your LoginID");document.Loginform2.customerID.focus();return false}if(document.Loginform2.password.value==""){alert("Please enter your password");document.Loginform2.password.focus();return false}document.Loginform2.races.value=1;document.Loginform2.submit();return true}function GOtoSportsBook(){if(document.Loginform.customerID.value==""){alert("Please enter your LoginID");document.Loginform.customerID.focus();return false}if(document.Loginform.password.value==""){alert("Please enter your password");document.Loginform.password.focus();return false}document.Loginform.submit();return true}function GOtoSportsBook2(){if(document.Loginform2.customerID.value==""){alert("Please enter your LoginID");document.Loginform2.customerID.focus();return false}if(document.Loginform2.password.value==""){alert("Please enter your password");document.Loginform2.password.focus();return false}document.Loginform2.submit();return true}function GOtoCasino(){if(document.Loginform2.customerID.value==""){alert("Please enter your LoginID");document.Loginform2.customerID.focus();return false}if(document.Loginform2.password.value==""){alert("Please enter your password");document.Loginform2.password.focus();return false}userID=document.Loginform2.customerID.value;password=document.Loginform2.password.value;window.open("http://casino.wagerweb.com/casino/java/login?officeID=316&userID="+userID+"&password="+password,"Casino","status=0,height=600,width=800")}function trim(A){return A.replace(/^\s*|\s*$/g,"")}function Casino(){if(document.casino.customerID.value==""){alert("Please enter your LoginID");document.casino.customerID.focus();return false}if(document.casino.password.value==""){alert("Please enter your password");document.casino.password.focus();return false}userID=trim(document.casino.customerID.value);password=trim(document.casino.password.value);document.casino.customerID.value="";document.casino.password.value="";window.open("http://casino.wagerweb.com/casino/java/login?officeID=316&userID="+userID+"&password="+password,"Casino","status=0,height=600,width=800,resizable=yes");return false}function Hearts(){if(document.heartsform.customerID.value==""){alert("Please enter your LoginID");document.heartsform.customerID.focus();return false}if(document.heartsform.password.value==""){alert("Please enter your password");document.heartsform.password.focus();return false}userID=trim(document.heartsform.customerID.value);password=trim(document.heartsform.password.value);document.heartsform.customerID.value="";document.heartsform.password.value="";window.open("http://casino.wagerweb.com/hearts/login/?officeID=316&userID="+userID+"&password="+password,"Casino","status=0,height=600,width=800,resizable=yes");return false}function HeartsLogin(){if(document.Loginform2.customerID.value==""){alert("Please enter your LoginID");document.Loginform2.customerID.focus();return false}if(document.Loginform2.password.value==""){alert("Please enter your password");document.Loginform2.password.focus();return false}userID=trim(document.Loginform2.customerID.value);password=trim(document.Loginform2.password.value);document.Loginform2.customerID.value="";document.Loginform2.password.value="";window.open("http://casino.wagerweb.com/hearts/login/?officeID=316&userID="+userID+"&password="+password,"Casino","status=0,height=600,width=800,resizable=yes");return false}function Checklimit(){if(document.formlimit.limit.value==""){alert("Please enter the higher limit information");document.formlimit.limit.focus();return false}};
