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 $t=document.getElementById('pData').value;var $u=document.frmMain.oPTF.options[document.frmMain.oPTF.selectedIndex].value;var $v=document.frmMain.oPTT.options[document.frmMain.oPTT.selectedIndex].value;$t=$t.split('#');var $w=$t[6].split('=')[1];var $x=$t[7].split('=')[1];document.frmMain.txtAmt.value="0.00";document.frmMain.txtPWD.value="";var $y=document.getElementById("offerCodeLabel");var $z=document.getElementById("offerCodeFields");var $A=document.getElementById("txtOfferCode");if($A!==null){if($v==5){$y.style.display="block";$y.style.visibility="visible";$z.style.display="block";$z.style.visibility="visible";}else{$y.style.display="none";$y.style.visibility="hidden";$z.style.display="none";$z.style.visibility="hidden";}}};function pCS($B){chkNum($B);};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 $C,$D,$E,lB;var $F=document.frmMain.txtURL.value;var $G;var $H=document.getElementById("txtDialingCode");if(typeof($H)!=="undefined"&&$H!==null){$H.setAttribute("disabled",false);$H.removeAttribute("disabled");};if(typeof frames['exbal']!=='undefined'){$G=frames['exbal'].lDWBBal;}else{$G=0;};if(IsTransferPage($a)==true){var $u=document.frmMain.oPTF.options[document.frmMain.oPTF.selectedIndex].value;var $v=document.frmMain.oPTT.options[document.frmMain.oPTT.selectedIndex].value;if(Number($u)==Number($v)){return false;};document.frmMain.txtAmt.value=document.frmMain.txtAmt2.value;if($u==3){if(!mlConfirm(88)){return false;}};$E=document.getElementById('trcsn');if($E!=null){if(typeof $E.cells[2]!=='undefined'&&$u==3){lB=$E.cells[2].innerHTML;if(Number(lB)>0&&Number($G)===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){$C=document.frmMain.sProduct;$D=document.frmMain.sPayment;if((typeof $C!=='undefined')&&(typeof $D!=='undefined')){setPrd($C.options[$C.selectedIndex].value);setPmt($D.options[$D.selectedIndex].value);};if(document.getElementById("txtNPID").value==2199){document.getElementById("txtNPID").value=$a;};SVOD();return false;}else if(IsWithdrawalPage($a)==true){$C=document.frmMain.sProduct;if(typeof $C!=='undefined'){setPrd($C.options[$C.selectedIndex].value);if($C.value==3){var $I=false;var $J=rndDe(frames['exbal'].cNBBal);if($J==0){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;}};$C=document.frmMain.sProduct;$D=document.frmMain.sPayment;if((typeof $C!=='undefined')&&(typeof $D!=='undefined')){setPrd($C.options[$C.selectedIndex].value);setPmt($D.options[$D.selectedIndex].value);};return VS();}};function chkNum($K){if(String($K.value)=="0."||String($K.value)=="."){return false;};if(isNaN($K.value)){$K.value="";return true;};if($K.value===""){$K.value="";return true;};if(typeof document.frmMain.oPTT!='undefined'){var $v=document.frmMain.oPTT.options[document.frmMain.oPTT.selectedIndex].value;if($v==4){rndDeci($K,0);}else{rndDeci($K,1);}}else{rndDeci($K,1);}};function gP($L){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($L)==2110){if(ChckUserLoged()!==true){return;}};document.frmMain.txtNPID.value=Number($L);if($L>0){PopDocLoaded=0;document.frmMain.submit();}else{SubmitForm(document.frmMain);}};function ChckUserLoged($M,$N){var $O=document.getElementById('txtLGN');if($O!==null){if(Number($O.value)==1){return true;}else{if(typeof $M=="undefined"){if(typeof $N!=="undefined"){mlAlert($N);}else{mlAlert(36);}};return false;}};return false;};function LoadBal($P,$Q,$R,$S,$T,$U){var $V='./ex-request.asp?uname='+$Q+'&product='+$R+'&pbalchange=&sDep='+$S+'&cc='+$T+'&lid='+$U+'&ocb=1&stk='+GetCookie('session','stk');window.frames.exbal.location.href=$V;};function lBal($W){var $X=frames['exbal'].cBal;var $Y=frames['exbal'].cBBal;var $Z=frames['exbal'].cTBal;var $00=frames['exbal'].pBal;var $01=frames['exbal'].pBBal;var $02=frames['exbal'].pTBal;var $03=frames['exbal'].gBal;var $04=frames['exbal'].gBBal;var $05=frames['exbal'].gTBal;var $06=frames['exbal'].bBal;var $07=frames['exbal'].bBBal;var $08=frames['exbal'].bTBal;var $09=frames['exbal'].lBalID;var $0a=frames['exbal'].lDep;var $0b=frames['exbal'].gbTBal;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($0a==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=$02;};if($0g!==null){$0g.innerHTML=$00;};if($0h!==null){$0h.innerHTML=$Z;};if($0i!==null){$0i.innerHTML=$X;};if($0j!==null){$0j.innerHTML=$05;};if($0k!==null){$0k.innerHTML=$03;};if($0l!==null){$0l.innerHTML=$08;};if($0m!==null){$0m.innerHTML=$03;};return false;};var $0n=null;var x=null;var $0o=document.getElementById('trcsn');if($0o!==null){if($W===3||$W===0){$0n=document.getElementById('tdlpb3');if($0n!==null){x=$0o.deleteCell(2);x=$0o.insertCell(2);x.innerHTML=$X;x.className="lft bt";x=$0o.insertCell(3);x.innerHTML=$Y;x.className="lft bt";x=$0o.insertCell(4);x.innerHTML=$Z;x.className="lft bt b";}else{$0o.firstChild.nextSibling.nextSibling.innerHTML=$X;$0o.firstChild.nextSibling.nextSibling.nextSibling.innerHTML=$Y;$0o.firstChild.nextSibling.nextSibling.nextSibling.nextSibling.innerHTML=$Z;}}};var $0p=document.getElementById('trpkr');if($0p!==null){if($W===4||$W===0){$0n=document.getElementById('tdlpb4');if($0n!==null){x=$0p.deleteCell(2);x=$0p.insertCell(2);x.innerHTML=$00;x.className="lft bt";x=$0p.insertCell(3);x.innerHTML=$01;x.className="lft bt";x=$0p.insertCell(4);x.innerHTML=$02;x.className="lft bt b";}else{$0p.firstChild.nextSibling.nextSibling.innerHTML=$00;$0p.firstChild.nextSibling.nextSibling.nextSibling.innerHTML=$01;$0p.firstChild.nextSibling.nextSibling.nextSibling.nextSibling.innerHTML=$02;}}};var $0q=document.getElementById('trgam');if($0q!==null){if($W===5||$W===0){var $0r='';if(!($04=='0.00'||$04=='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;">'+$04+'</a>';}else{$0r=$0r+$04;};var langID=document.getElementById("hiddenLID").value;if(langID==1||langID==14||langID==3||langID==8){$0r=$0r+'/';if(!($07=='0.00'||$07=='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);">'+$07+'</a>';}else{$0r=$0r+$07;}};$0n=document.getElementById('tdlpb5');if($0n!==null){x=$0q.deleteCell(2);x=$0q.insertCell(2);x.innerHTML=$03;x.className="lft bt";x=$0q.insertCell(3);x.innerHTML=$0r;x.className="lft bt";x=$0q.insertCell(4);x.innerHTML=$0b;x.className="lft bt b";}else{$0q.firstChild.nextSibling.nextSibling.innerHTML=$03;$0q.firstChild.nextSibling.nextSibling.nextSibling.innerHTML=$0r;$0q.firstChild.nextSibling.nextSibling.nextSibling.nextSibling.innerHTML=$0b;}}}};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 $0A=document.getElementById("tYear");var $0B=document.getElementById("fDay");var $0C=document.getElementById("fMonth");var $0D=document.getElementById("fYear");var $0E=$0B.options[$0B.selectedIndex].value;var $0F=$0C.options[$0C.selectedIndex].value;var $0G=$0y.options[$0y.selectedIndex].value;var $0H=$0z.options[$0z.selectedIndex].value;if(Number($0E)<10){$0E='0'+$0E;};if(Number($0F)<10){$0F='0'+$0F;};if(Number($0G)<10){$0G='0'+$0G;};if(Number($0H)<10){$0H='0'+$0H;};var $0I=document.getElementById("txtDateFrom");var $0J=document.getElementById("txtDateTo");$0J.value=$0G+'/'+$0H+'/'+$0A.options[$0A.selectedIndex].value;$0I.value=$0E+'/'+$0F+'/'+$0D.options[$0D.selectedIndex].value;}}};function rsGT(){var $0K=document.frmMain.txtGameBets;if(typeof $0K!=='undefined'){$0K.value=0;}};function msgsa($s,$0L){var $0M;if(!(typeof $0L==='undefined')){$0M=document.getElementById("hidParam");$0M.value=$0L;};var $g=document.getElementById('txtMSA');if(($g!==null)&&(typeof $g!=='undefined')){$g.value=$s;};VS();};function eOC(){var $0N=document.getElementById('mobile');var $0O=document.getElementById('telephone');var $0P=document.frmMain.preferred;if(trim($0N.value).length===0&&trim($0O.value).length===0){$0N.value='';$0O.value='';$0N.setAttribute('validate','req;telephone');$0O.setAttribute('validate','req;telephone');}else{$0N.setAttribute('validate','telephone');$0O.setAttribute('validate','telephone');};if(typeof $0P!=='undefined'){if($0P[1].checked&&trim($0N.value).length===0){$0P[0].checked=true;}else if($0P[0].checked&&trim($0O.value).length===0){$0P[1].checked=true;}}};function trim($0Q){return $0Q.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($0R){windowOpen($0R,true,"https://"+document.frmMain.txtURL.value+"?popmembers="+$0R,"height="+g_windowSizeLarge[1]+",width="+g_windowSizeLarge[0]+",left=200,top=70");};function PCP($0R,$0S,$0T){windowOpen($0R,true,"http://"+document.frmMain.txtURL.value+"?popmembers="+$0R,"height="+$0S+",width="+$0T+",left=300,top=300");};function gBC($0t){CookieTest();var $0w=$0t.split("#");if(Number($0w[2])>0){var $0U=document.getElementById('bsID');var $0V=document.getElementById('bsTTID');if($0U!==null){$0U.value=$0w[0];};if($0V!==null){$0V.value=$0w[1];};var $0S=GetScreenRes();var $0W=GetScrennWidth();var $0X=GetScrennTop();var $0Y='9110';if(9096==Number(document.frmMain.txtCPID.value)){$0Y='9196';};if(Number($0w[3])>0){gP($0Y);}else{windowOpen($0Y,true,"http://"+document.frmMain.txtURL.value+"?popmembers="+$0Y+"&br="+document.frmMain.txtbetslipreference.value,"height="+$0S+",width=630,left="+$0W+",top="+$0X);}}else{document.frmMain.txtBetSlipID.value=$0w[0];document.frmMain.txtTranType.value=$0w[1];var $0U=document.getElementById('bsID');var $0V=document.getElementById('bsTTID');if($0U!==null){$0U.value=$0w[0];};if($0V!==null){$0V.value=$0w[1];};gP(9020);}};function snp($0Z){if(arguments.length>1&&arguments[1]){self.opener.document.frmMain.txtNPID.value=Number($0Z);}else{document.frmMain.txtNPID.value=Number($0Z);}};function LdPmts($10,$a){if($10.name=='sProduct'){setPrd($10.options[$10.selectedIndex].value);setPmt('0');};if($10.name=='sPayment'){setPmt($10.options[$10.selectedIndex].value);};gPS($a);};function msfPC($p,$11){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 $12=$11.split("#");var $13='?popmembers='+$p+'&fqs='+$12[0]+'&fqt='+$12[1];var $14="http://"+document.frmMain.txtURL.value+$13;windowOpen($p,true,$14,"height="+$0S+"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($15,$16,$17){window.open($15,"anew",$18="toolbar=0,scrollbars=1,location=0,status=0,menubar=0,resizable=0,width="+$16+",height="+$17);};function spp($19){document.frmMain.txtPPID.value=Number($19);};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($0R){var $a=Number($0R);if((5665==$a)||(2495==$a)||(5544==$a)){if(!CheckLogIn(false)){mlAlert(36);return;}};var $0W=GetScrennWidth();var $0X=GetScrennTop();var $F=getURL($0R);var $14='http://'+$F+'?ibpid='+$0R;if(arguments.length>1&&5544!=$a){$14+='&gametype='+arguments[1]+'&nb=1';};if(arguments.length>1&&5544==$a){$14+='&po='+arguments[1];};windowOpen($0R,true,$14,"height="+g_windowSizeLarge[1]+",width="+g_windowSizeLarge[0]+",left="+$0W+",top="+$0X);};function LaunchFlashTest(){var $1l=screen.width;var $1m=screen.height;var $1n,$1o,$1p;$1o=250;$1n=191;$1p=1;var $1q=Number(($1l-$1o)/2);var $1r=Number(($1m-$1n)/2);var $1s='./../home/Flash_InPlay/Flash_Tester.asp?size='+$1p+'&Mode=-1';window.open($1s,'ainpl',$1t='toolbar=0,scrollbars=0,location=0,status=0,menubar=0,resizable=0,left='+$1r+',top='+$1q+',width='+$1o+', height='+$1n);};function LdStrm($1u,$1v,$1w,ls,$14,$1x,$1y,$1z,$1A,$1B){var $0W=GetScrennWidth();var $0X=GetScrennTop();if($1x=='undefined'){$1x='';};if($1x=='b2v'){window.open('./LoadStream_v1.asp?fxid='+$1u+'&rstm='+$1v+'&rt='+$1x,"atr","height=600,width=800,status=no,toolbar=no,menubar=no,location=no,left="+$0W+",top="+$0X+",scrollbars=yes,resizable=yes");}else{window.open('./LoadStream_v1.asp?fxid='+$1u+'&rstm='+$1v+'&isarc='+$1y+'&rno='+$1z+'&rcode='+$1A+'&lset='+$1B,"atr","height=600,width=800,status=no,toolbar=no,menubar=no,location=no,left="+$0W+",top="+$0X+",scrollbars=yes,resizable=yes");}};function mlMultiAlert($1C){var $1D=document.getElementById("waitTextDiv");if($1D!=null&&typeof($1D)!="undefined"){$1D.style.display="none";$1D.style.visibility="hidden";};var $1E=mlMsg($1C)+"\r\n\r\n";if(arguments.length>0){for(var i=1;i<arguments.length;i++){var id=arguments[i];$1E=$1E+" -"+mlMsg(id)+"\r\n";}};alert($1E);};function mcp($10){var $a=$10.options[$10.selectedIndex].value;setPrd($a);SetCookie('session','processform',0);document.frmMain.submit();};function SBL_Ex($a){if(!ChckUserLoged()){return false;};var $F=getURL($a);$1F=$F+"?popup=true&ibpid="+$a;if(winBal!=null){if(typeof winBal.close!=='undefined'){try{winBal.close();}catch(e){winBal=null;}}};winBal=window.open('http://'+$1F,"anew",$18="toolbar=0,scrollbars=no,location=0,statusbar=0,menubar=0,resizable=0,width="+g_windowBalance[0]+",height="+g_windowBalance[1]);};function PM($0R){var $0S;var $0W;var $0X;var $1G=GetQS();var $F=getURL($0R);if(Number($0R)==2110||Number($0R)==2180||Number($0R)==2100){if(ChckUserLoged()===true){$0W=GetScrennWidth();$0X=GetScrennTop();var $1j=UseSSL();windowOpen($0R,true,"http://"+$F+"?ibpid="+$0R+$1G,"height="+g_windowSizeLarge[1]+",width="+g_windowSizeLarge[0]+",left="+$0W+",top="+$0X);}}else{if(Number($0R)==3000||Number($0R)==2010||Number($0R)==2210||Number($0R)==2130){if(!ChckUserLoged()){gP(-1);return false;}};if(Number($0R)==2010){var $1H=1;if((document.frmMain.txtNavigationPB!==null)&&(typeof document.frmMain.txtNavigationPB!=='undefined')){var $1I=document.frmMain.txtNavigationPB.value;var $1J=$1I.indexOf("SiteContentTypeID=");var $1K=$1I.indexOf(";",$1J);var $1L=$1I.substring($1J+18,$1K);switch(Number($1L)){case 5:$1H=5;break;case 4:$1H=3;break;default:$1H=1;break;}};$1G=$1G+'&prd='+$1H;setPrd('1');setPmt('0');};$0W=GetScrennWidth();$0X=GetScrennTop();windowOpen($0R,true,"http://"+$F+"?ibpid="+$0R+$1G,"height="+g_windowSizeLarge[1]+",width="+g_windowSizeLarge[0]+",left="+$0W+",top="+$0X);if(2200==$0R||$0R==2740){MOAW();}}};function lGBC($10){var $1M=document.getElementById('tPHash');var $1N=document.getElementById('tUToken');var $1O=document.getElementById('tBTID');var $1P=document.getElementById('tPTID');var $1Q=document.getElementById('tGCode');var $1R=document.getElementById('tStk');var $1S=document.getElementById('tRtn');if(($1M!==null)&&($10.getAttribute('phash')!==null)){$1M.value=$10.getAttribute('phash');};if(($1N!==null)&&($10.getAttribute('utoken')!==null)){$1N.value=$10.getAttribute('utoken');};if(($1O!==null)&&($10.getAttribute('btid')!==null)){$1O.value=$10.getAttribute('btid');};if(($1P!==null)&&($10.getAttribute('ptid')!==null)){$1P.value=$10.getAttribute('ptid');};if(($1Q!==null)&&($10.getAttribute('gcode')!==null)){$1Q.value=$10.getAttribute('gcode');};if(($1R!==null)&&($10.getAttribute('stk')!==null)){$1R.value=$10.getAttribute('stk');};if(($1S!==null)&&($10.getAttribute('rtn')!==null)){$1S.value=$10.getAttribute('rtn');};snp(9097);SVO();document.frmMain.submit();};function LMH($1T){document.frmMain.txtNPID.value=Number($1T);SetCookie('session','processform',1);document.frmMain.submit();};function toggleRange($1U){var $0y=document.getElementById("tDay");var $0z=document.getElementById("tMonth");var $0A=document.getElementById("tYear");var $0B=document.getElementById("fDay");var $0C=document.getElementById("fMonth");var $0D=document.getElementById("fYear");var $1V=document.getElementById("sixmonths");if($1U==2){$0y.disabled=false;$0z.disabled=false;$0A.disabled=false;$0B.disabled=false;$0C.disabled=false;$0D.disabled=false;$1V.style.display="inline";$1V.style.visibility="visible";}else{$0y.disabled=true;$0z.disabled=true;$0A.disabled=true;$0B.disabled=true;$0C.disabled=true;$0D.disabled=true;$1V.style.display="none";$1V.style.visibility="hidden";}};function ibPM($0R){var $1W=document.getElementById('txtURL');var $1G=GetCookie('session','stk');var $1X=$1W.value;$0S=GetScreenRes();$0W=GetScrennWidth();$0X=GetScrennTop();if($1X.indexOf('home')>=0){$1X=$1X.replace('popup.asp','mainpage.asp');}else{$1X=$1X.replace('popup.asp','iface.asp');};if((Number($0R)==5020)||(Number($0R)==5075)||(Number($0R)==2495)){windowOpen($0R,true,"http://"+$1X+"?ibpid="+$0R+'&stk='+$1G,"height="+$0S+",width=630,left="+$0W+",top="+$0X);}else{if(Number($0R)==3000||Number($0R)==2010||Number($0R)==2210||Number($0R)==2130){windowOpen($0R,true,"https://"+$1X+"?ibpid="+$0R+'&stk='+$1G,"height="+$0S+",width=630,left="+$0W+",top="+$0X);}}};function mlMultiAlertV2(){var $1D=document.getElementById("waitTextDiv");if($1D!=null&&typeof($1D)!="undefined"){$1D.style.display="none";$1D.style.visibility="hidden";};var $1E=mlMsg(arguments[0])+"\r\n\r\n";for(var i=1;i<arguments.length;i++){var id=arguments[i];if(id=="|"){break;}else{$1E=$1E+" -"+mlMsg(id)+"\r\n";}};var j=i+1;if(arguments[j+1]!=null){$1E=$1E+"\r\n"+mlMsg(arguments[j])+"\r\n\r\n";for(i=j+1;i<arguments.length;i++){var id=arguments[i];$1E=$1E+" -"+mlMsg(id)+"\r\n";}};alert($1E);};function loadFundsTransfer(){var $1Y=document.getElementById("oPTF");$1Y.disabled=false;populateCombo($1Y);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 $X=frames['exbal'].cBal;var $Y=frames['exbal'].cBBal;var $Z=frames['exbal'].cTBal;var $00=frames['exbal'].pBal;var $01=frames['exbal'].pBBal;var $02=frames['exbal'].pTBal;var $03=frames['exbal'].gBal;var $04=frames['exbal'].gBBal;var $05=frames['exbal'].gTBal;var $0c=frames['exbal'].bNBBal;var $0d=frames['exbal'].gNBBal;if($0f!==null){$0f.innerHTML=$02;};if($0h!==null){$0h.innerHTML=$Z;};if($0j!==null){$0j.innerHTML=$03;};if($0l!==null){$0l.innerHTML=$03;};if($0k!==null){$0k.innerHTML=$03;};if($0m!==null){$0m.innerHTML=$03;};document.getElementById("txtBBB").value=$0c;document.getElementById("txtGBB").value=$0d;};function populateCombo($10){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 $1Z=" ";for(i=0;i<$10.options.length;i++){var $q=$10.options[i].value;var $20=0;if($q==3){$10.options[i].text=$10.options[i].text+$1Z+$0i;}else if($q==4){$10.options[i].text=$10.options[i].text+$1Z+$0g;}else if($q==5){$10.options[i].text=$10.options[i].text+$1Z+$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($21){var $s=document.getElementById($21);if($s!=null){$s.value="";}};function validateTransfer(){if(document.frmMain.txtCPID.value==2220){clearDepositFields();};var $22=document.getElementById("txtAmt");var $23=document.getElementById("txtAmt2");var $A=document.getElementById("txtOfferCode");var $24=document.getElementById("txtPWD");var $25=false;$22.style.borderColor="#999999";$23.style.borderColor="#999999";$24.style.borderColor="#999999";$22.style.color="#999999";$23.style.color="#999999";$24.style.color="#999999";if($A!==null){$A.style.borderColor="#999999";$A.style.color="#999999";if($A.value.length!=0){if(!Validate_AlphaNumeric($A.value,$A)){displayFieldError($A);$25=true;};if($A.value.length!=10){displayFieldError($A);$25=true;mlAlert(50,10);return;}}};if($23.value==""||chkNum($23)==false||$23.value==0){displayFieldError($23);$25=true;}else{displayOK($23);};if($24.value==""){displayFieldError($24);$25=true;};var $26=document.frmMain.oPTF;var $27=document.frmMain.oPTT;var $28=$26.options[$26.selectedIndex].value;var $29=$27.options[$27.selectedIndex].value;if(Number($28)==Number($29)){mlAlert(261);displayFieldError($27);return false;};if($25){mlAlert(21);return false;};if($28==3){var $I=false;var $J=rndDe(frames['exbal'].cNBBal);if($J==0){if(!mlConfirm(88)){return false;}}else{mlAlert(186);return false;}};$22.value=$23.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){if(HasActiveBonus()&&($28==5||$28==7)){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();}}else{mlAlert(129);};return false;};function validateTransferComplete($2a){SetCookie('session','processform',1);if(typeof $2a=='undefined'){document.getElementById("closeBonusID").value=1;};GB_Hide();DoSubmitForm=1;document.frmMain.submit();};function confirmedBonuses(){var $2b;var $s=document.getElementById("isDeposit");if($s!=null&&typeof($s)!="undefined"){var $2c=document.getElementById("sProduct");if($2c!=null&&typeof($2c)!="undefined"){if($2c.options[$2c.selectedIndex].value==3){if($s.value==0){var $2d=rndDe(frames['exbal'].cBBal);if($2d>0){mlAlert(186);return false;}}}}};return true;};function checkBingoStatus($2e,langID,$2f){var $s=document.getElementById("txtLBC");if($s.value==2){$s.value=0;redirectBingo($2e,langID,$2f);}};function redirectBingo($2e,langID,$2f){var $s=document.getElementById("txtBST");var $2g=$s.value;var $2h;if(typeof $2f=='undefined'||Number($2f)==1){$2h="";}else{$2h="preview.";};var $14="https://"+$2h+"vf.bingoatbet365.com/whgames/play/game_page.do?gameType=Bingo&token="+$2g;if(typeof $2f!=='undefined'&&Number(langID)==3){$14="https://"+$2h+"vf-es.bingoatbet365.com/whgames/play/game_page.do?gameType=Bingo&token="+$2g;}else if(typeof $2f!=='undefined'&&Number(langID)==8){$14="https://"+$2h+"vf-se.bingoatbet365.com/whgames/play/game_page.do?gameType=Bingo&token="+$2g;}else{$14="https://"+$2h+"vf.bingoatbet365.com/whgames/play/game_page.do?gameType=Bingo&token="+$2g;};if($2e==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($14,"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($14);}};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: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: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_vA009cr';};


