var PopDocLoaded=0;var bClosing=true;var winBal=null;var DoSubmitForm=0;function gMP($a,$b){if(typeof $b=='undefined'){var $c=$a.split('#');if($c.length>0){setPrd($c[2]);setPmt($c[1]);gP($c[0]);}else{gPS($a);}}else{var $d=$b.options[$b.selectedIndex].value;gPS($d);}};function msgcp($e,$s){var $f=document.getElementById('txtMSD');if(($f!==null)&&(typeof $f!=='undefined')){if(typeof $s==='undefined'){$f.value='';}else{$f.value=$s;}};var $g=document.getElementById('txtMSA');if(($g!==null)&&(typeof $g!=='undefined')){$g.value='';};var $h=document.getElementById("txtCPID").value;if($h==5020||$h==5280){PC($e);}else{gPS($e);}};function gPS($a){if(CheckPPState()!==true){return;};document.frmMain.txtNPID.value=Number($a);document.frmMain.method="post";document.frmMain.action="https://"+document.frmMain.txtURL.value;PopDocLoaded=0;document.frmMain.submit();};function LnhChat($i,langID,$j,$k,$l,$m,$n){var $o='uid='+$i+'&langID='+langID+'&sgid='+$j+'&product='+$l+'&site='+$k+'&IsDLC='+$m+'&loc='+$n;var width=g_windowSizeLiveChat[0];var height=g_windowSizeLiveChat[1];var left=(screen.width/ 2)-(width/ 2);var top=(screen.height/ 2)-(height/ 2);windowOpenLiveChat('./livechat.asp?'+$o,"height="+height+",width="+width+",left="+left+",top="+top);};function gTPP($p,$q){var $r=true;if($q==5||$q==7){var $s=document.getElementById("tpdID");if($s.value==5||$s.value==7){$r=false;}};if($r){setPrd($q);};gPS($p);};function DisplayFunds(){var sData=document.getElementById('pData').value;var $t=document.frmMain.oPTF.options[document.frmMain.oPTF.selectedIndex].value;var $u=document.frmMain.oPTT.options[document.frmMain.oPTT.selectedIndex].value;sData=sData.split('#');var $v=sData[6].split('=')[1];var $w=sData[7].split('=')[1];document.frmMain.txtAmt.value="0.00";document.frmMain.txtPWD.value="";var $x=document.getElementById("offerCodeLabel");var $y=document.getElementById("offerCodeFields");var $z=document.getElementById("txtOfferCode");var $A=document.getElementById("cboCSOfferCode");var $B=document.getElementById("cboPKOfferCode");var $C=($x.getAttribute('ago')!==null?$x.getAttribute('ago'):0);var $D=($x.getAttribute('aco')!==null?$x.getAttribute('aco'):0);var $E=($x.getAttribute('apo')!==null?$x.getAttribute('apo'):0);if(($u==5)&&(Number($C)>0)&&($z!==null)){$x.style.display="block";$x.style.visibility="visible";$y.style.display="block";$y.style.visibility="visible";$z.style.display="";$z.style.visibility="visible";if($A!==null){$A.style.display="none";$A.style.visibility="hidden";$A.disabled=false;};if($B!==null){$B.style.display="none";$B.style.visibility="hidden";$B.disabled=false;}}else if(($u==3)&&(Number($D)>0)&&($A!==null)){$x.style.display="block";$x.style.visibility="visible";$y.style.display="block";$y.style.visibility="visible";$A.style.display="";$A.style.visibility="visible";$A.disabled=false;if($z!==null){$z.style.display="none";$z.style.visibility="hidden";};if($B!==null){$B.style.display="none";$B.style.visibility="hidden";$B.disabled=false;}}else if(($u==4)&&(Number($E)>0)&&($B!==null)){$x.style.display="block";$x.style.visibility="visible";$y.style.display="block";$y.style.visibility="visible";$B.style.display="";$B.style.visibility="visible";if($z!==null){$z.style.display="none";$z.style.visibility="hidden";};if($A!==null){$A.style.display="none";$A.style.visibility="hidden";$A.disabled=false;}}else{$x.style.display="none";$x.style.visibility="hidden";$y.style.display="none";$y.style.visibility="hidden";if($z!==null){$z.style.display="none";$z.style.visibility="hidden";};if($A!==null){$A.style.display="none";$A.style.visibility="hidden";$A.disabled=false;};if($B!==null){$B.style.display="none";$B.style.visibility="hidden";$B.disabled=false;}}};function pCS($F){chkNum($F);};function DoTrnsfr($a){if(document.frmMain.txtCPID.value==2220){clearTransferFields();};if(!confirmedBonuses()){return;};if($a==2200||$a==2201||$a==2202||$a==2203){bClosing=false;};if($a==2420){SetCookie("session","doredirect",0);};var $G,$H,$I,lB;var $J=document.frmMain.txtURL.value;var $K;var $L=document.getElementById("txtDialingCode");if(typeof($L)!=="undefined"&&$L!==null){$L.setAttribute("disabled",false);$L.removeAttribute("disabled");};if(typeof frames['exbal']!=='undefined'){$K=frames['exbal'].lDWBBal;}else{$K=0;};if(IsTransferPage($a)==true){var $t=document.frmMain.oPTF.options[document.frmMain.oPTF.selectedIndex].value;var $u=document.frmMain.oPTT.options[document.frmMain.oPTT.selectedIndex].value;if(Number($t)==Number($u)){return false;};document.frmMain.txtAmt.value=document.frmMain.txtAmt2.value;if($t==3){if(!mlConfirm(88)){return false;}};$I=document.getElementById('trcsn');if($I!=null){if(typeof $I.cells[2]!=='undefined'&&$t==3){lB=$I.cells[2].innerHTML;if(Number(lB)>0&&Number($K)===1){if(mlConfirm(86)===false){document.frmMain.reset();return false;}}}};if(Number(document.frmMain.txtAmt.value)>0){if(Number(strDepositProcess)===0){SetCookie('session','processform',1);strDepositProcess=1;document.getElementById("txtNPID").value=$a;document.frmMain.submit();}else{mlAlert(129);}}else{mlAlert(128);};return false;}else if(IsDepositPage($a)==true){$G=document.frmMain.sProduct;$H=document.frmMain.sPayment;if((typeof $G!=='undefined')&&(typeof $H!=='undefined')){setPrd($G.options[$G.selectedIndex].value);setPmt($H.options[$H.selectedIndex].value);};if(document.getElementById("txtNPID").value==2199){document.getElementById("txtNPID").value=$a;};var $M="";if(document.getElementById("cboOfferCode2")!==null){$M=document.getElementById("cboOfferCode2");$M=$M.options[$M.selectedIndex].value;};if((document.getElementById("txtOfferCode2")!==null)&&(document.getElementById("txtOfferCode2"))&&($M.length==0)){$M=document.getElementById("txtOfferCode2").value;};if((typeof $G!=='undefined')&&($G!==null)&&(Number($G.options[$G.selectedIndex].value)==3||Number($G.options[$G.selectedIndex].value)==4)&&($M.length>0)){GetPlayTechBonus(0);}else{if(typeof($G)=="undefined"){SVOD();}else if((Number($G.options[$G.selectedIndex].value)==3||Number($G.options[$G.selectedIndex].value)==4)&&(document.getElementById("tuedf")!==null&&Number(document.getElementById("tuedf").value)==0)){SVOD('1');}else{SVOD();}};return false;}else if(IsWithdrawalPage($a)==true){$G=document.frmMain.sProduct;if(typeof $G!=='undefined'){if($G.value==3){var $N=false;var $O=rndDe(frames['exbal'].cNBBal);if($O==0||isNaN($O)){if(!mlConfirm(88)){return false;}}else{mlAlert(186);return false;}}};SVOW();return false;}else if(IsURUPage($a)==true){return VS2();}else{if($a==2199){if(Number(strDepositProcess)===0){strDepositProcess=1;}else{mlAlert(126);return false;}};$G=document.frmMain.sProduct;$H=document.frmMain.sPayment;if((typeof $G!=='undefined')&&(typeof $H!=='undefined')){setPrd($G.options[$G.selectedIndex].value);setPmt($H.options[$H.selectedIndex].value);};return VS();}};function GetPlayTechBonus($P){var $Q=(Number($P)>0?DoSubmitForm:strDepositProcess);if(Number($Q)===0){var $G;var $R;var sP;var sB="";if(Number($P)>0){if(typeof frames['cp_bns']!=='undefined'){$G=document.frmMain.oPTT;sP=$G.options[$G.selectedIndex].value;if((Number(sP)==3)&&(document.getElementById("cboCSOfferCode")!==null)){$R=document.getElementById("cboCSOfferCode");if((typeof $R.options!=='undefined')&&($R.options!==null)){sB=$R.options[$R.selectedIndex].value;}else{sB=$R.value;}}else if((Number(sP)==4)&&(document.getElementById("cboPKOfferCode")!==null)){$R=document.getElementById("cboPKOfferCode");if((typeof $R.options!=='undefined')&&($R.options!==null)){sB=$R.options[$R.selectedIndex].value;}else{sB=$R.value;}};window.frames.cp_bns.location.href='cp_bns.asp?pc_bc='+sB+'&prd='+sP+'&cbf=CTPTB&rn='+GetRndNum();}}else{if(RSU(document.frmMain)===true){if(typeof frames['cp_bns']!=='undefined'){$G=document.frmMain.sProduct;sP=$G.options[$G.selectedIndex].value;if(document.getElementById("cboOfferCode2")!==null){$R=document.getElementById("cboOfferCode2");sB=$R.options[$R.selectedIndex].value;};if((document.getElementById("txtOfferCode2"))&&(sB.length==0)){sB=document.getElementById("txtOfferCode2").value;};window.frames.cp_bns.location.href='cp_bns.asp?pc_bc='+sB+'&prd='+sP+'&cbf=CDPTB&rn='+GetRndNum();}}}}else{if(Number($P)>0){mlAlert(129);return false;}else{var $S=document.getElementById("verify");if($S!=null){if($S.value!=1){return false;}};mlAlert(30);return false;}}};function CDPTB(){var $T=frames['cp_bns'].sMD;var $U=document.getElementById('depositAmount');if($U==null){$U=document.getElementById('voucherAmount');};var $V=$U.value;if(Number($T)>Number($V)){var $W=264;var $X=265;var $Y="<b>"+mlMsgReplace($W)+"</b><div class=\"line1\"></div>"+mlMsgReplace($X,formatCurrency($T));GB_Create2Buttons(mlMsg(266),"CancelDep();",mlMsg(267),"FinishDep()",$Y,true,"GB_Hide()",mlMsg(231));}else{GB_Hide();ShowProgress();SetCookie('session','processform',1);strDepositProcess=1;DoSubmitForm=1;PopSubmitForm=1;document.frmMain.submit();}};function ShowProgress(){var $Z=document.getElementById('DV_Inprog');if($Z!==null){$Z.style.height=document.body.scrollHeight+"px";$Z.style.width=document.body.scrollWidth+"px";$Z.style.display='block';$Z.style.visibility='visible';SetProgPos();window.onresize=function(e){SetProgPos();};window.onscroll=function(e){SetProgPos();};window.onmaximize=function(e){SetProgPos();}}};function SetProgPos(){var $Z=document.getElementById('DV_Inprog');var $00=document.getElementById('DV_Cnt');$Z.style.height=document.body.scrollHeight+"px";$Z.style.width=document.body.scrollWidth+"px";var $01=$00.offsetHeight/2;var $02=$00.offsetWidth/2;var $03=document.body.clientWidth;var $04=document.body.clientHeight;var l=($03/2)-$02+document.body.scrollLeft;var t=($04/2)-$01+document.body.scrollTop;$00.style.top=t;$00.style.left=l;};function CTPTB(){var $T=frames['cp_bns'].sMD;var $V=document.frmMain.txtAmt2.value;if(Number($T)>Number($V)){var $W=264;var $X=265;var $Y="<b>"+mlMsgReplace($W)+"</b><div class=\"line1\"></div>"+mlMsgReplace($X,formatCurrency($T));GB_Create2Buttons(mlMsg(266),"CancelDep();",mlMsg(267,formatCurrency($T)),"FinishDep(1)",$Y,true,"GB_Hide()",mlMsg(231));}else{GB_Hide();var tF=document.getElementById('oPTF');var $05=tF!==null?tF.options[tF.selectedIndex].value:0;if(Number($05)==5||Number($05)==7){window.frames.xbal.location.href="xbal.asp?productid=5&stk="+GetCookie('session','stk')+"&rn="+GetRndNum()+"&cb=validateTransfer_Callback";}else{ShowProgress();SetCookie('session','processform',1);DoSubmitForm=1;document.frmMain.submit();}}};function FinishDep($P){var $R;if(Number($P)>0){var $G=document.frmMain.oPTT;var sP=$G.options[$G.selectedIndex].value;if(Number(sP)==3){$R=document.getElementById("cboCSOfferCode");}else if(Number(sP)==4){$R=document.getElementById("cboPKOfferCode");};$R.disabled=true;GB_Hide();var tF=document.getElementById('oPTF');var $05=tF!==null?tF.options[tF.selectedIndex].value:0;if(Number($05)==5||Number($05)==7){window.frames.xbal.location.href="xbal.asp?productid=5&stk="+GetCookie('session','stk')+"&rn="+GetRndNum()+"&cb=validateTransfer_Callback";}else{SetCookie('session','processform',1);DoSubmitForm=1;if(document.getElementById("tuedf")!==null&&Number(document.getElementById("tuedf").value)==0){ShowProgress();};document.frmMain.submit();}}else{if(document.getElementById("cboOfferCode2")!==null){$R=document.frmMain.cboOfferCode2;};if(document.getElementById("txtOfferCode2")!==null){$R=document.frmMain.txtOfferCode2;};$R.disabled=true;GB_Hide();if(document.getElementById("tuedf")!==null&&Number(document.getElementById("tuedf").value)==0){SVODWT('1');}else{SVODWT();}}};function CancelDep($P){GB_Hide();SetCookie('session','processform',0);strDepositProcess=0;DoSubmitForm=0;PopSubmitForm=0;};function chkNum($06){if(String($06.value)=="0."||String($06.value)=="."){return false;};if(isNaN($06.value)){$06.value="";return true;};if($06.value===""){$06.value="";return true;};if(typeof document.frmMain.oPTT!='undefined'){var $u=document.frmMain.oPTT.options[document.frmMain.oPTT.selectedIndex].value;if($u==4){rndDeci($06,0);}else{rndDeci($06,1);}}else{rndDeci($06,1);}};function gP($07){if(document.frmMain.txtCPID.value==3000||document.frmMain.txtCPID.value==3020){if(Number(strDepositProcess)===1){mlAlert(129);return;}};if(CheckPPState()!==true){return;};CookieTest();if(Number($07)==2110){if(ChckUserLoged()!==true){return;}};document.frmMain.txtNPID.value=Number($07);if($07>0){PopDocLoaded=0;document.frmMain.submit();}else{SubmitForm(document.frmMain);}};function ChckUserLoged($08,$09){var $0a=document.getElementById('txtLGN');if($0a!==null){if(Number($0a.value)==1){return true;}else{if(typeof $08=="undefined"){if(typeof $09!=="undefined"){mlAlert($09);}else{mlAlert(36);}};return false;}};return false;};function LoadBal($0b,$0c,$0d,$0e,$0f,$0g,$0h,$0i){var $0j='./ex-request.asp?uname='+$0c+'&product='+$0d+'&pbalchange=&sDep='+$0e+'&cc='+$0f+'&lid='+$0g+'&ocb=1&bae='+$0h+'&hgt='+$0i+'&stk='+GetCookie('session','stk')+'&rn='+GetRndNum();window.frames.exbal.location.href=$0j;};function lBal($0k){var $0l=frames['exbal'].cBal;var $0m=frames['exbal'].cBBal;var $0n=frames['exbal'].cTBal;var $0o=frames['exbal'].pBal;var $0p=frames['exbal'].pBBal;var $0q=frames['exbal'].pTBal;var $0r=frames['exbal'].gBal;var $0s=frames['exbal'].gBBal;var $0t=frames['exbal'].gTBal;var $0u=frames['exbal'].bBal;var $0v=frames['exbal'].bBBal;var $0w=frames['exbal'].bTBal;var $0x=frames['exbal'].lBalID;var $0y=frames['exbal'].lDep;var $0z=frames['exbal'].gbTBal;var $0A=frames['exbal'].bABB;var $0B=frames['exbal'].bPBB;var $0C=frames['exbal'].bNBBal;var $0D=frames['exbal'].gNBBal;var $0E=typeof frames['exbal'].cCode!=='undefined'&&frames['exbal'].cCode!==null?frames['exbal'].cCode:'';document.getElementById("txtBBB").value=$0C;document.getElementById("txtGBB").value=$0D;if($0y==1){var $0F=document.getElementById('ptbal');var $0G=document.getElementById('pbal');var $0H=document.getElementById('ctbal');var $0I=document.getElementById('cbal');var $0J=document.getElementById('gtbal');var $0K=document.getElementById('gbal');var $0L=document.getElementById('btbal');var $0M=document.getElementById('bbal');if($0F!==null){$0F.innerHTML=$0q;};if($0G!==null){$0G.innerHTML=$0o;};if($0H!==null){$0H.innerHTML=$0n;};if($0I!==null){$0I.innerHTML=$0l;};if($0J!==null){$0J.innerHTML=$0t;};if($0K!==null){$0K.innerHTML=$0r;};if($0L!==null){$0L.innerHTML=$0w;};if($0M!==null){$0M.innerHTML=$0r;};return false;};var $0N=null;var x=null;var $0O=document.getElementById('trcsn');if($0O!==null){if($0k===3||$0k===0){$0N=document.getElementById('tdlpb3');if($0N!==null){x=$0O.deleteCell(2);x=$0O.insertCell(2);x.innerHTML=$0l;x.className="lft bt";x=$0O.insertCell(3);x.innerHTML=$0m;x.className="lft bt";x=$0O.insertCell(4);x.innerHTML=$0n;x.className="lft bt b";}else{$0O.firstChild.nextSibling.nextSibling.innerHTML=$0l;$0O.firstChild.nextSibling.nextSibling.nextSibling.innerHTML=$0m;$0O.firstChild.nextSibling.nextSibling.nextSibling.nextSibling.innerHTML=$0n;}}};var $0P=document.getElementById('trpkr');if($0P!==null){if($0k===4||$0k===0){$0N=document.getElementById('tdlpb4');if($0N!==null){x=$0P.deleteCell(2);x=$0P.insertCell(2);x.innerHTML=$0o;x.className="lft bt";x=$0P.insertCell(3);x.innerHTML=$0p;x.className="lft bt";x=$0P.insertCell(4);x.innerHTML=$0q;x.className="lft bt b";}else{$0P.firstChild.nextSibling.nextSibling.innerHTML=$0o;$0P.firstChild.nextSibling.nextSibling.nextSibling.innerHTML=$0p;$0P.firstChild.nextSibling.nextSibling.nextSibling.nextSibling.innerHTML=$0q;}}};var $0Q=document.getElementById('trgam');if($0Q!==null){if($0k===5||$0k===0){var $0R='';if(!($0s=='0.00'||$0s=='0,00')){$0R=$0R+'<a href="#" style="color:#666666" onmouseover="javascript:showTooltip(\'games_tip\');" onmouseout="javascript:hideTooltip();" onmousemove="javascript:setTooltipPos(event);" class="f" onclick="setPrd(5);gPS(2810);return false;">'+$0s+'</a>';}else{$0R=$0R+$0s;};var langID=document.getElementById("hiddenLID").value;if(langID==1||langID==14||langID==3||langID==8){$0R=$0R+'/';if(!($0v=='0.00'||$0v=='0,00')){$0R=$0R+'<a href="#" style="color:#666666" onclick="setPrd(7);gPS(2811);return false;" onmouseover="javascript:showTooltip(\'bingo_tip\');" onmouseout="javascript:hideTooltip();" onmousemove="javascript:setTooltipPos(event);">'+$0v+'</a>';}else{$0R=$0R+$0v;};if($0A!=$0B){}};$0N=document.getElementById('tdlpb5');if($0N!==null){x=$0Q.deleteCell(2);x=$0Q.insertCell(2);x.innerHTML=$0r;x.className="lft bt";x=$0Q.insertCell(3);x.innerHTML=$0R;x.className="lft bt";x=$0Q.insertCell(4);x.innerHTML=$0z;x.className="lft bt b";}else{$0Q.firstChild.nextSibling.nextSibling.innerHTML=$0r;$0Q.firstChild.nextSibling.nextSibling.nextSibling.innerHTML=$0R;$0Q.firstChild.nextSibling.nextSibling.nextSibling.nextSibling.innerHTML=$0z;}}}};function SetDocState(){PopDocLoaded=1;if('function'==typeof(ThisPageOnLoad)){ThisPageOnLoad();};var $a=document.getElementById("txtCPID").value;if($a==2420){SetCookie("session","doredirect",1);};if($a==2592){SetCookie('session','processform',0);}};function SD(){if(typeof PopSubmitForm!=='undefined'){if(PopSubmitForm===0){return;}};if(window.opener!=null&&typeof(window.opener)!="undefined"){if(window.opener.closed){mlAlert(52);window.close();}}};function CheckPPState(){if(Number(PopDocLoaded)==1){PopSubmitForm=1;return true;};return false;};function mHP($0S){CookieTest();var id=$0S.options[$0S.selectedIndex].value;document.frmMain.txtNPID.value=Number(id);document.frmMain.submit();};function gBk($0T){location=$0T;};function SubmitForm(){document.frmMain.submit();};function gTP(){CookieTest();var $0U=document.getElementById("cboTransSelection");if($0U!==null){var $0V=$0U.options[$0U.selectedIndex].value;var $0W=$0V.split(";");if(Number($0W[1])>0){document.frmMain.txtNPID.value=Number($0W[0]);document.frmMain.txtTransSelection.value=$0W[1];SetDates();rsGT();VS();}else{mlAlert(164);return false;}}};function SetDates(){var $0X=document.getElementById("optRange");if($0X!==null){if(!$0X.checked){var $0Y=document.getElementById("tDay");var $0Z=document.getElementById("tMonth");var $10=document.getElementById("tYear");var $11=document.getElementById("fDay");var $12=document.getElementById("fMonth");var $13=document.getElementById("fYear");var $14=$11.options[$11.selectedIndex].value;var $15=$12.options[$12.selectedIndex].value;var $16=$0Y.options[$0Y.selectedIndex].value;var $17=$0Z.options[$0Z.selectedIndex].value;if(Number($14)<10){$14='0'+$14;};if(Number($15)<10){$15='0'+$15;};if(Number($16)<10){$16='0'+$16;};if(Number($17)<10){$17='0'+$17;};var $18=document.getElementById("txtDateFrom");var $19=document.getElementById("txtDateTo");$19.value=$16+'/'+$17+'/'+$10.options[$10.selectedIndex].value;$18.value=$14+'/'+$15+'/'+$13.options[$13.selectedIndex].value;}}};function rsGT(){var $1a=document.frmMain.txtGameBets;if(typeof $1a!=='undefined'){$1a.value=0;}};function msgsa($s,$1b){var $1c;if(!(typeof $1b==='undefined')){$1c=document.getElementById("hidParam");$1c.value=$1b;};var $g=document.getElementById('txtMSA');if(($g!==null)&&(typeof $g!=='undefined')){$g.value=$s;};VS();};function eOC(){var $1d=document.getElementById('mobile');var $1e=document.getElementById('telephone');var $1f=document.frmMain.preferred;if(trim($1d.value).length===0&&trim($1e.value).length===0){$1d.value='';$1e.value='';$1d.setAttribute('validate','req;telephone');$1e.setAttribute('validate','req;telephone');}else{$1d.setAttribute('validate','telephone');$1e.setAttribute('validate','telephone');};if(typeof $1f!=='undefined'){if($1f[1].checked&&trim($1d.value).length===0){$1f[0].checked=true;}else if($1f[0].checked&&trim($1e.value).length===0){$1f[1].checked=true;}}};function trim($1g){return $1g.replace(/^\s+|\s+$/,'');};function pSMT($a){document.frmMain.txtNPID.value=Number($a);if(arguments.length>1&&(5544==$a||$a==2497)){if(document.getElementById("txtOC")!=null){document.getElementById("txtOC").value=arguments[1];}};document.frmMain.submit();};function sslPC($1h){windowOpen($1h,true,"https://"+document.frmMain.txtURL.value+"?popmembers="+$1h,"height="+g_windowSizeLarge[1]+",width="+g_windowSizeLarge[0]+",left=200,top=70");};function PCP($1h,$1i,$1j){windowOpen($1h,true,"http://"+document.frmMain.txtURL.value+"?popmembers="+$1h,"height="+$1i+",width="+$1j+",left=300,top=300");};function gBC($0T){CookieTest();var $0W=$0T.split("#");if(Number($0W[2])>0){var $1k=document.getElementById('bsID');var $1l=document.getElementById('bsTTID');if($1k!==null){$1k.value=$0W[0];};if($1l!==null){$1l.value=$0W[1];};var $1i=GetScreenRes();var $1m=GetScrennWidth();var $1n=GetScrennTop();var $1o='9110';if(9096==Number(document.frmMain.txtCPID.value)){$1o='9196';};if(Number($0W[3])>0){gP($1o);}else{windowOpen($1o,true,"http://"+document.frmMain.txtURL.value+"?popmembers="+$1o+"&br="+document.frmMain.txtbetslipreference.value,"height="+$1i+",width=630,left="+$1m+",top="+$1n);}}else{document.frmMain.txtBetSlipID.value=$0W[0];document.frmMain.txtTranType.value=$0W[1];var $1k=document.getElementById('bsID');var $1l=document.getElementById('bsTTID');if($1k!==null){$1k.value=$0W[0];};if($1l!==null){$1l.value=$0W[1];};gP(9020);}};function snp($1p){if(arguments.length>1&&arguments[1]){self.opener.document.frmMain.txtNPID.value=Number($1p);}else{document.frmMain.txtNPID.value=Number($1p);}};function LdPmts($1q,$a){if($1q.name=='sProduct'){setPrd($1q.options[$1q.selectedIndex].value);setPmt('0');};if($1q.name=='sPayment'){setPmt($1q.options[$1q.selectedIndex].value);};gPS($a);};function msfPC($p,$1r){var width=g_windowSizeLarge[0];var height=g_windowSizeLarge[1];var left=(screen.width/ 2)-(width/ 2);var top=(screen.height/ 2)-(height/ 2);var $1s=$1r.split("#");var $1t='?popmembers='+$p+'&fqs='+$1s[0]+'&fqt='+$1s[1];var $1u="http://"+document.frmMain.txtURL.value+$1t;windowOpen($p,true,$1u,"height="+$1i+"height="+height+",width="+width+",left="+left+",top="+top);};function DLCheck(){if(RSU(document.frmMain)===true){SetCookie('session','processform',1);DoSubmitForm=1;document.frmMain.method="post";document.frmMain.action="https://"+document.frmMain.txtURL.value;document.frmMain.submit();}};function openPopUpWin($1v,$1w,$1x){window.open($1v,"anew",$1y="toolbar=0,scrollbars=1,location=0,status=0,menubar=0,resizable=0,width="+$1w+",height="+$1x);};function spp($1z){document.frmMain.txtPPID.value=Number($1z);};function SetCloseFlag(){if(typeof PopSubmitForm!=='undefined'){if(Number(PopSubmitForm)==0){SetCookie('session','p',1);}}};function loadGT($a){document.frmMain.txtGameBets.value="1";gP($a);};function doDepSubmit(e){var $1A=(window.event)?event.keyCode:e.keyCode;if($1A!=null&&typeof($1A)!="undefined"){if($1A==13){var $1B=document.getElementById("txtCPID");if($1B!=null&&typeof($1B)!="undefined"){if($1B.value==2201){eOC();};if(GetBrowser()=="IE"){DoTrnsfr($1B.value);}}}}};function selectFAQDefault(){var $1C=document.getElementById("txtCPID");if($1C!=null&&typeof($1C)!="undefined"){var $1D=document.getElementById("cboProducts");if($1D!=null&&typeof($1D)!="undefined"){if($1C.value==5619){$1D.selectedIndex=1;}else if($1C.value==5642){$1D.selectedIndex=2;}else{$1D.selectedIndex=4;};fillsel($1D);}}};function iReg(){if(bClosing){var i;for(i=(document.frmMain.length-1);i>=0;i=i-1){if(document.frmMain[i].getAttribute("groupname")!==null){var $1E=document.frmMain[i].getAttribute("id");var $1F=document.getElementById($1E);if($1F!=null&&typeof($1F)!="undefined"){$1E=$1E.substring(1,$1E.length);var $1G=document.getElementById($1E);if($1G!=null&&typeof($1G)!="undefined"){$1F.value=$1G.value;}}}};bClosing=false;document.frmMain.target="_blank";document.frmMain.action="../home/mainpage.asp?popmembers=5423";document.frmMain.submit();}};function doSecSubmit(e,$1H){var $1A=document.all?event.keyCode:e.which?e.which:e.keyCode;if($1A!=null&&typeof($1A)!="undefined"){if($1A==13){var $1B=document.getElementById("txtCPID");if($1B!=null&&typeof($1B)!="undefined"){if($1H==1){s1();VS();}else{doRS();}}}}};function doBonusSubmit(e){var $1I=true;var $1A=document.all?event.keyCode:e.which?e.which:e.keyCode;if($1A!=null&&typeof($1A)!="undefined"){if($1A==13){var $1B=document.getElementById("txtCPID");if($1B!=null&&typeof($1B)!="undefined"){VS();$1I=false;}}else{$1I=true;}};return $1I;};function openAccBack(){bClosing=false;history.go(-1);};function CheckLogIn(sBS){return ChckUserLoged(sBS,22);};function UseSSL(){var $1J=false;var $1K=document.getElementById('txtAS');if(typeof $1K!=='undefined'){if($1K!==null){if($1K.value==='1'){$1J=true;}}};return $1J;};function RsPC($1h){var $a=Number($1h);if((5665==$a)||(2495==$a)||(5544==$a)){if(!CheckLogIn(false)){mlAlert(36);return;}};var $1m=GetScrennWidth();var $1n=GetScrennTop();var $J=getURL($1h);var $1u='http://'+$J+'?ibpid='+$1h;if(arguments.length>1&&5544!=$a){$1u+='&gametype='+arguments[1]+'&nb=1';};if(arguments.length>1&&5544==$a){$1u+='&po='+arguments[1];};windowOpen($1h,true,$1u,"height="+g_windowSizeLarge[1]+",width="+g_windowSizeLarge[0]+",left="+$1m+",top="+$1n);};function LaunchFlashTest($1L){var $1M=screen.width;var $1N=screen.height;var $1O,$1P,$1Q;$1P=250;$1O=191;$1Q=1;var $1R=Number(($1M-$1P)/2);var $1S=Number(($1N-$1O)/2);var $1T='./../home/Flash_InPlay/Flash_Tester.asp?size='+$1Q+'&Mode=-1';if((typeof $1L!=='undefined')&&($1L!==null)){$1T=$1T+'&flsver='+$1L;};window.open($1T,'ainpl',$1U='toolbar=0,scrollbars=0,location=0,status=0,menubar=0,resizable=0,left='+$1S+',top='+$1R+',width='+$1P+', height='+$1O);};function LdStrm($1V,$1W,$1X,ls,$1u,$1Y,$1Z,$20,$21,$22){var $1m=GetScrennWidth();var $1n=GetScrennTop();if($1Y=='undefined'){$1Y='';};if($1Y=='b2v'){window.open('./LoadStream_v1.asp?fxid='+$1V+'&rstm='+$1W+'&rt='+$1Y,"atr","height=600,width=800,status=no,toolbar=no,menubar=no,location=no,left="+$1m+",top="+$1n+",scrollbars=yes,resizable=yes");}else{window.open('./LoadStream_v1.asp?fxid='+$1V+'&rstm='+$1W+'&isarc='+$1Z+'&rno='+$20+'&rcode='+$21+'&lset='+$22,"atr","height=600,width=800,status=no,toolbar=no,menubar=no,location=no,left="+$1m+",top="+$1n+",scrollbars=yes,resizable=yes");}};function mlMultiAlert($23){var $24=document.getElementById("waitTextDiv");if($24!=null&&typeof($24)!="undefined"){$24.style.display="none";$24.style.visibility="hidden";};var $25=mlMsg($23)+"\r\n\r\n";if(arguments.length>0){for(var i=1;i<arguments.length;i++){var id=arguments[i];$25=$25+" -"+mlMsg(id)+"\r\n";}};alert($25);};function mcp($1q){var $a=$1q.options[$1q.selectedIndex].value;setPrd($a);SetCookie('session','processform',0);document.frmMain.submit();};function SBL_Ex($a){if(!ChckUserLoged()){return false;};var $J=getURL($a);$26=$J+"?popup=true&ibpid="+$a+'&rn='+GetRndNum();if(winBal!=null){if(typeof winBal.close!=='undefined'){try{winBal.close();}catch(e){winBal=null;}}};winBal=window.open('http://'+$26,"anew",$1y="toolbar=0,scrollbars=no,location=0,statusbar=0,menubar=0,resizable=0,width="+g_windowBalance[0]+",height="+g_windowBalance[1]);};function PM($1h){var $1i;var $1m;var $1n;var $27=GetQS();var $J=getURL($1h);if(Number($1h)==2110||Number($1h)==2180||Number($1h)==2100){if(ChckUserLoged()===true){$1m=GetScrennWidth();$1n=GetScrennTop();var $1J=UseSSL();windowOpen($1h,true,"http://"+$J+"?ibpid="+$1h+$27,"height="+g_windowSizeLarge[1]+",width="+g_windowSizeLarge[0]+",left="+$1m+",top="+$1n);}}else{if(Number($1h)==3000||Number($1h)==2010||Number($1h)==2210||Number($1h)==2130){if(!ChckUserLoged()){gP(-1);return false;}};if(Number($1h)==2010){var $28=1;if((document.frmMain.txtNavigationPB!==null)&&(typeof document.frmMain.txtNavigationPB!=='undefined')){var $29=document.frmMain.txtNavigationPB.value;var $2a=$29.indexOf("SiteContentTypeID=");var $2b=$29.indexOf(";",$2a);var $2c=$29.substring($2a+18,$2b);switch(Number($2c)){case 5:$28=5;break;case 4:$28=3;break;default:$28=1;break;}};$27=$27+'&prd='+$28;setPrd('1');setPmt('0');};$1m=GetScrennWidth();$1n=GetScrennTop();windowOpen($1h,true,"http://"+$J+"?ibpid="+$1h+$27,"height="+g_windowSizeLarge[1]+",width="+g_windowSizeLarge[0]+",left="+$1m+",top="+$1n);if(2200==$1h||$1h==2740){MOAW();}}};function lGBC($1q){var $2d=document.getElementById('tPHash');var $2e=document.getElementById('tUToken');var $2f=document.getElementById('tBTID');var $2g=document.getElementById('tPTID');var $2h=document.getElementById('tGCode');var $2i=document.getElementById('tStk');var $2j=document.getElementById('tRtn');var $2k=document.getElementById('tTmstmp');if(($2d!==null)&&($1q.getAttribute('phash')!==null)){$2d.value=$1q.getAttribute('phash');};if(($2e!==null)&&($1q.getAttribute('utoken')!==null)){$2e.value=$1q.getAttribute('utoken');};if(($2f!==null)&&($1q.getAttribute('btid')!==null)){$2f.value=$1q.getAttribute('btid');};if(($2g!==null)&&($1q.getAttribute('ptid')!==null)){$2g.value=$1q.getAttribute('ptid');};if(($2h!==null)&&($1q.getAttribute('gcode')!==null)){$2h.value=$1q.getAttribute('gcode');};if(($2i!==null)&&($1q.getAttribute('stk')!==null)){$2i.value=$1q.getAttribute('stk');};if(($2j!==null)&&($1q.getAttribute('rtn')!==null)){$2j.value=$1q.getAttribute('rtn');};if(($2k!==null)&&($1q.getAttribute('tmstmp')!==null)){$2k.value=$1q.getAttribute('tmstmp');};snp(9097);SVO();document.frmMain.submit();};function LMH($2l){document.frmMain.txtNPID.value=Number($2l);SetCookie('session','processform',1);document.frmMain.submit();};function toggleRange($2m){var $0Y=document.getElementById("tDay");var $0Z=document.getElementById("tMonth");var $10=document.getElementById("tYear");var $11=document.getElementById("fDay");var $12=document.getElementById("fMonth");var $13=document.getElementById("fYear");var $2n=document.getElementById("sixmonths");if($2m==2){$0Y.disabled=false;$0Z.disabled=false;$10.disabled=false;$11.disabled=false;$12.disabled=false;$13.disabled=false;$2n.style.display="inline";$2n.style.visibility="visible";}else{$0Y.disabled=true;$0Z.disabled=true;$10.disabled=true;$11.disabled=true;$12.disabled=true;$13.disabled=true;$2n.style.display="none";$2n.style.visibility="hidden";}};function ibPM($1h){var $2o=document.getElementById('txtURL');var $27=GetCookie('session','stk');var $2p=$2o.value;$1i=GetScreenRes();$1m=GetScrennWidth();$1n=GetScrennTop();if($2p.indexOf('home')>=0){$2p=$2p.replace('popup.asp','mainpage.asp');}else{$2p=$2p.replace('popup.asp','iface.asp');};if((Number($1h)==5020)||(Number($1h)==5075)||(Number($1h)==2495)){windowOpen($1h,true,"http://"+$2p+"?ibpid="+$1h+'&stk='+$27+'&rn='+GetRndNum(),"height="+$1i+",width=630,left="+$1m+",top="+$1n);}else{if(Number($1h)==3000||Number($1h)==2010||Number($1h)==2210||Number($1h)==2130){windowOpen($1h,true,"https://"+$2p+"?ibpid="+$1h+'&stk='+$27+'&rn='+GetRndNum(),"height="+$1i+",width=630,left="+$1m+",top="+$1n);}}};function mlMultiAlertV2(){var $24=document.getElementById("waitTextDiv");if($24!=null&&typeof($24)!="undefined"){$24.style.display="none";$24.style.visibility="hidden";};var $25=mlMsg(arguments[0])+"\r\n\r\n";for(var i=1;i<arguments.length;i++){var id=arguments[i];if(id=="|"){break;}else{$25=$25+" -"+mlMsg(id)+"\r\n";}};var j=i+1;if(arguments[j+1]!=null){$25=$25+"\r\n"+mlMsg(arguments[j])+"\r\n\r\n";for(i=j+1;i<arguments.length;i++){var id=arguments[i];$25=$25+" -"+mlMsg(id)+"\r\n";}};alert($25);};function loadFundsTransfer(){var $2q=document.getElementById("oPTF");$2q.disabled=false;populateCombo($2q);var to=document.getElementById("oPTT");to.disabled=false;populateCombo(to);var $0F=document.getElementById('ptbal');var $0H=document.getElementById('ctbal');var $0J=document.getElementById('gtbal');var $0K=document.getElementById('gbal');var $0L=document.getElementById('btbal');var $0M=document.getElementById('bbal');var $0l=frames['exbal'].cBal;var $0m=frames['exbal'].cBBal;var $0n=frames['exbal'].cTBal;var $0o=frames['exbal'].pBal;var $0p=frames['exbal'].pBBal;var $0q=frames['exbal'].pTBal;var $0r=frames['exbal'].gBal;var $0s=frames['exbal'].gBBal;var $0t=frames['exbal'].gTBal;var $0C=frames['exbal'].bNBBal;var $0D=frames['exbal'].gNBBal;if($0F!==null){$0F.innerHTML=$0q;};if($0H!==null){$0H.innerHTML=$0n;};if($0J!==null){$0J.innerHTML=$0r;};if($0L!==null){$0L.innerHTML=$0r;};if($0K!==null){$0K.innerHTML=$0r;};if($0M!==null){$0M.innerHTML=$0r;};document.getElementById("txtBBB").value=$0C;document.getElementById("txtGBB").value=$0D;DisplayFunds();};function populateCombo($1q){var i;var $0I=0;var $0G=0;var $0K=0;if(frames['exbal']!=null){if(frames['exbal'].cBal!=null){$0I=frames['exbal'].cBal;};if(frames['exbal'].pBal!=null){$0G=frames['exbal'].pBal;};if(frames['exbal'].gBal!=null){$0K=frames['exbal'].gBal;}};var $2r=" ";for(i=0;i<$1q.options.length;i++){var $q=$1q.options[i].value;var $2s=0;if($q==3){$1q.options[i].text=$1q.options[i].text+$2r+$0I;}else if($q==4){$1q.options[i].text=$1q.options[i].text+$2r+$0G;}else if($q==5){$1q.options[i].text=$1q.options[i].text+$2r+$0K;}}};function resizeWindow(width,height){try{window.resizeTo(width+12,height);}catch(e){}};function submitTransfer(e){if(GetBrowser()=="IE"){var $1A=(window.event)?event.keyCode:e.keyCode;if($1A!=null&&typeof($1A)!="undefined"){if($1A==13){validateTransfer();}}}};function clearDepositFields(){clearField("cvtwo");clearField("depositAmount");clearField("txtOfferCode2");clearField("depositPassword");};function clearTransferFields(){clearField("txtAmt2");clearField("txtPWD");clearField("txtOfferCode");};function clearField($2t){var $s=document.getElementById($2t);if($s!=null){$s.value="";}};function validateTransfer(){if(document.frmMain.txtCPID.value==2220){clearDepositFields();};var $2u=document.getElementById("txtAmt");var $2v=document.getElementById("txtAmt2");var $z=document.getElementById("txtOfferCode");var $2w=document.getElementById("txtPWD");var $2x=false;$2u.style.borderColor="#999999";$2v.style.borderColor="#999999";$2w.style.borderColor="#999999";$2u.style.color="#999999";$2v.style.color="#999999";$2w.style.color="#999999";if($z!==null){$z.style.borderColor="#999999";$z.style.color="#999999";if($z.value.length!=0){if(!Validate_AlphaNumeric($z.value,$z)){displayFieldError($z);$2x=true;};if($z.value.length!=10){displayFieldError($z);$2x=true;mlAlert(50,10);return;}}};if($2v.value==""||chkNum($2v)==false||$2v.value==0){displayFieldError($2v);$2x=true;}else{displayOK($2v);};if($2w.value==""){displayFieldError($2w);$2x=true;};var $2y=document.frmMain.oPTF;var $2z=document.frmMain.oPTT;var $2A=$2y.options[$2y.selectedIndex].value;var $2B=$2z.options[$2z.selectedIndex].value;if(Number($2A)==Number($2B)){mlAlert(261);displayFieldError($2z);return false;};if($2x){mlAlert(21);return false;};if($2A==3){var $N=false;var $O=rndDe(frames['exbal'].cNBBal);if(Number($O)>0){mlAlert(186);return false;}else{if(!mlConfirm(88)){return false;}}};$2u.value=$2v.value;if(document.frmMain.txtCPID.value==3001){document.frmMain.txtNPID.value=3001;}else if(document.frmMain.txtCPID.value==2220){document.frmMain.txtNPID.value=3000;}else{document.frmMain.txtNPID.value=3000;};if(Number(DoSubmitForm)===0){var $M="";if((Number($2B)==3)&&(document.getElementById("cboCSOfferCode")!==null)){$M=document.getElementById("cboCSOfferCode");if((typeof $M.options!=='undefined')&&($M.options!==null)){$M=$M.options[$M.selectedIndex].value;}else{$M=$M.value;}}else if((Number($2B)==4)&&(document.getElementById("cboPKOfferCode")!==null)){$M=document.getElementById("cboPKOfferCode");if((typeof $M.options!=='undefined')&&($M.options!==null)){$M=$M.options[$M.selectedIndex].value;}else{$M=$M.value;}};if((Number($2B)==3||Number($2B)==4)&&($M.length>0)){GetPlayTechBonus(1);}else if($2A==5||$2A==7){window.frames.xbal.location.href="xbal.asp?productid=5&stk="+GetCookie('session','stk')+"&rn="+GetRndNum()+"&cb=validateTransfer_Callback";}else{SetCookie('session','processform',1);DoSubmitForm=1;if((Number($2B)==3||Number($2B)==4)&&(document.getElementById("tuedf")!==null&&Number(document.getElementById("tuedf").value)==0)){ShowProgress();};document.frmMain.submit();}}else{mlAlert(129);};return false;};function validateTransfer_Callback(){document.getElementById("txtGBB").value=frames['xbal'].xbal_gbb;document.getElementById("txtBBB").value=frames['xbal'].xbal_bbb;document.getElementById("txtHAB").value=frames['xbal'].xbal_hab;document.getElementById("txtHGAB").value=frames['xbal'].xbal_hag;document.getElementById("txtHBAB").value=frames['xbal'].xbal_hbab;document.getElementById("txtHGB").value=frames['xbal'].xbal_hgb;document.getElementById("txtHBB").value=frames['xbal'].xbal_hbb;document.getElementById("txtHAGT").value=frames['xbal'].xbal_atg;document.getElementById("txtHABT").value=frames['xbal'].xbal_atb;document.getElementById("txtHACBB").value=frames['xbal'].xbal_hgo;document.getElementById("txtHACGB").value=frames['xbal'].xbal_hbo;if(HasActiveBonus()){SetCookie('session','processform',0);CheckBingoGames(validateTransferComplete,"GB_Hide()","validateTransferComplete()",3,212,216,"GB_Hide()",false);}else{SetCookie('session','processform',1);DoSubmitForm=1;document.frmMain.submit();}};function validateTransferComplete($2C){SetCookie('session','processform',1);if(typeof $2C=='undefined'){document.getElementById("closeBonusID").value=1;};GB_Hide();DoSubmitForm=1;document.frmMain.submit();};function confirmedBonuses(){var $2D;var $s=document.getElementById("isDeposit");if($s!=null&&typeof($s)!="undefined"){var $2E=document.getElementById("sProduct");if($2E!=null&&typeof($2E)!="undefined"){if($2E.options[$2E.selectedIndex].value==3){if($s.value==0){var $2F=rndDe(frames['exbal'].cBBal);if($2F>0){mlAlert(186);return false;}}}}};return true;};function checkBingoStatus($2G,langID,$2H){var $s=document.getElementById("txtLBC");if($s.value==2){$s.value=0;redirectBingo($2G,langID,$2H);}};function redirectBingo($2G,langID,$2H){var $s=document.getElementById("txtBST");var $2I=$s.value;var $2J;if(typeof $2H=='undefined'||Number($2H)==1){$2J="";}else{$2J="preview.";};var $1u="https://"+$2J+"vf.bingoatbet365.com/igames/play/game_page.do?gameType=Bingo&token="+$2I;if(typeof $2H!=='undefined'&&Number(langID)==3){$1u="https://"+$2J+"vf-es.bingoatbet365.com/igames/play/game_page.do?gameType=Bingo&token="+$2I;}else if(typeof $2H!=='undefined'&&Number(langID)==8){$1u="https://"+$2J+"vf-se.bingoatbet365.com/igames/play/game_page.do?gameType=Bingo&token="+$2I;}else{$1u="https://"+$2J+"vf.bingoatbet365.com/igames/play/game_page.do?gameType=Bingo&token="+$2I;};if($2G==true){var width=g_windowSizeLarge[0];var height=g_windowSizeLarge[1];var left=(screen.width/ 2)-(width/ 2);var top=(screen.height/ 2)-(height/ 2);window.open($1u,"bingo","height="+height+",width="+width+",status=yes,toolbar=no,menubar=no,location=no,left=200,top=70,scrollbars=yes,resizable=yes,resizable=yes");}else{resizeWindow(800,600);window.location.replace($1u);}};function invalidateFields(){if((typeof document.frmMain!=='undefined')&&(document.frmMain!==null)&&(document.frmMain.length!==null)){for(i=0;i<document.frmMain.length;i++){if((document.frmMain[i].getAttribute("invalid"))&&(document.frmMain[i].getAttribute("invalid")=="1")){displayFieldError(document.frmMain[i]);document.frmMain[i].setAttribute("invalid",0);if(m_setFocus==false){m_setFocus=true;document.frmMain[i].focus();}}}}};window.onload=invalidateFields;function IsTransferPage($a){switch(Number($a)){case 3000:case 3020:case 3001:return true;default:return false;}};function IsDepositPage($a){switch(Number($a)){case 2540:case 2380:case 2270:case 2410:case 2400:case 2610:case 2220:case 10000:case 2600:case 2605:case 2579:case 2570:case 2580:case 2590:case 2620:case 2500:case 2212:case 2595:return true;default:return false;}};function IsWithdrawalPage($a){switch(Number($a)){case 2130:case 2170:case 10007:case 2181:case 2176:case 2177:case 10005:case 2496:case 2179:case 2175:case 2615:case 2632:return true;default:return false;}};function IsURUPage($a){switch(Number($a)){case 12101:case 12102:case 12103:case 12106:case 12107:case 12108:case 12109:return true;default:return false;}};function RemoveFlashObjects(bK){return;};function GetPopUpVer(){return 'bet365popup_vA027cr';};



