
var NewUserFields=new Array("bt_username|Your Desired Login ID","bt_password|Your Password","bt_password2|Your Password Confirmation","bt_email1|Your Current E-Mail","bt_email2|Your E-mail Confirmation","bt_currency|Your Preferred Currency","bt_language|your Preferred Language","bt_codedeposit|Your Security PIN","bt_firstname|Your First Name","bt_firstname|Your Last Name","bt_dob_mon|Your Date of birth - Month","bt_dob_day|Your Date of birth - Day","bt_dob_year|Your Date of birth - Year","bt_mobile|Your Mobile phone","bt_addr1|Your Adresss Information","bt_city|Your City Information","bt_postal|Your Postal Information","bt_country|Your Country Information","bt_sec_code|Your Security code");var MonthList=new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec");var YearMin=1930;function doNewUser(formObj)
{if(btFormCheck(formObj,NewUserFields,""))
{var bt_username=btGetFormValue(formObj,"bt_username");var bt_password=btGetFormValue(formObj,"bt_password");var bt_password2=btGetFormValue(formObj,"bt_password2");var bt_email1=btGetFormValue(formObj,"bt_email1");var bt_email2=btGetFormValue(formObj,"bt_email2");var bt_dob_mon=btGetFormValue(formObj,"bt_dob_mon");var bt_dob_day=btGetFormValue(formObj,"bt_dob_day");var bt_dob_year=btGetFormValue(formObj,"bt_dob_year");if(bt_password!=bt_password2)
{alert("Passwords do not match.");return;}
if(bt_email1!=bt_email2)
{alert("Passwords do not match.");return;}
if(!document.getElementById("bt_cb1").checked)
{alert("You have to agree to our Term of Service");return;}
if(!document.getElementById("bt_cb2").checked)
{alert("You have to check that you are 21 years or above");return;}
var bt_btn1=document.getElementById("bt_btn1");bt_btn1.value=" Sending data ... ";bt_btn1.disabled=true;var args=new Array();args["username"]=bt_username;args["password"]=bt_password;args["fullname"]=btGetFormValue(formObj,"bt_fullname");args["bankname"]=btGetFormValue(formObj,"bt_bankname");args["bankaccname"]=btGetFormValue(formObj,"bt_bankaccname");args["bankaccnum"]=btGetFormValue(formObj,"bt_bankaccnum");args["mobile"]=btGetFormValue(formObj,"bt_mobile");args["email"]=bt_email;args["seccode"]=btGetFormValue(formObj,"bt_sec_code");args["dob"]=bt_dob_year+"-"+bt_dob_mon+"-"+bt_dob_day;xajax_RegisterUser(args);}}
function checkNewUser()
{var bt_username=document.getElementById("bt_username");var bt_password=document.getElementById("bt_password");var bt_password2=document.getElementById("bt_password2");var bt_email1=document.getElementById("bt_email1");var bt_email2=document.getElementById("bt_email2");var bt_currency=document.getElementById("bt_currency");var bt_language=document.getElementById("bt_language");var bt_firstname=document.getElementById("bt_firstname");var bt_lastname=document.getElementById("bt_lastname");var bt_dob_mon=document.getElementById("bt_dob_mon");var bt_dob_day=document.getElementById("bt_dob_day");var bt_dob_year=document.getElementById("bt_dob_year");var bt_mobile=document.getElementById("bt_mobile");var bt_addr1=document.getElementById("bt_addr1");var bt_city=document.getElementById("bt_city");var bt_postal=document.getElementById("bt_postal");var bt_country=document.getElementById("bt_country");var bt_sec_code=document.getElementById("bt_sec_code");var alertMsg="";var haserror=false;if(bt_username.value=="")
{alertMsg+=" - Your Desired Login ID\n";haserror=true;}else{var user=bt_username.value;if(!user.match(/^[a-zA-Z0-9]{5,12}$/))
{alertMsg+=" - Login ID Between 5 to 12 alpha numeric (A-Z, a-z, 0-9) character only\n";haserror=true;}else{}}
if(bt_password.value=="")
{alertMsg+=" - Your Password\n";haserror=true;}else{var pwd=bt_password.value;if(!pwd.match(/(.){8,15}$/))
{alertMsg+=" - Password Between 8 to 15 Characters\n";haserror=true;}else{}}
if(bt_password2.value=="")
{alertMsg+=" - Your Password Confirmation\n";haserror=true;}else{if(bt_password.value!=bt_password2.value)
{alertMsg+=" - Passwords does not match\n";haserror=true;}else{}}
if(bt_email1.value=="")
{alertMsg+=" - Your Current E-Mail\n";haserror=true;}else{var email=bt_email1.value;if(!email.match(/^[\w-]+(\.[\w-]+)*@([\w-]+\.)+[a-zA-Z]{2,7}$/))
{alertMsg+=" - E-Mail is not valid\n";haserror=true;}else{}}
if(bt_email2.value=="")
{alertMsg+=" - Your E-Mail Confirmation\n";haserror=true;}else{if(bt_email1.value!=bt_email2.value)
{alertMsg+=" - E-Mail doesn't match\n";haserror=true;}else{}}
if(bt_currency.selectedIndex==0)
{alertMsg+=" - Your Preferred Currency\n";haserror=true;}else{}
if(bt_language.selectedIndex==0)
{alertMsg+=" - Your Preferred Language\n";haserror=true;}else{}
if(bt_firstname.value=="")
{alertMsg+=" - Your First Name\n";haserror=true;}else{}
if(bt_lastname.value=="")
{alertMsg+=" - Your Last Name\n";haserror=true;}else{}
if(bt_dob_mon.selectedIndex==0)
{alertMsg+=" - Your Date of birth - Month\n";haserror=true;}else{}
if(bt_dob_day.selectedIndex==0)
{alertMsg+=" - Your Date of birth - Day\n";haserror=true;}else{}
if(bt_dob_year.selectedIndex==0)
{alertMsg+=" - Your Date of birth - Year\n";haserror=true;}else{}
if(bt_mobile.value=="")
{alertMsg+=" - Your Mobile phone\n";haserror=true;}else{}
if(bt_addr1.value=="")
{alertMsg+=" - Your Adresss Information\n";haserror=true;}else{}
if(bt_postal.value=="")
{alertMsg+=" - Your Postal Information\n";haserror=true;}else{}
if(bt_city.value=="")
{alertMsg+=" - Your City Information\n";haserror=true;}else{}
if(bt_country.selectedIndex==0)
{alertMsg+=" - Your Country Information\n";haserror=true;}else{}
if(!document.getElementById("bt_cb1").checked)
{alertMsg+=" - You have to agree to our Term of Service\n";document.getElementById("bt_cb1").style.background='red';haserror=true;}else{document.getElementById("bt_cb1").style.background='';}
if(bt_sec_code.value=="")
{alertMsg+=" - Security code\n";haserror=true;}else{}
if(haserror)
{alertMsgTtl="Please complete the following fields :\n";alert(alertMsgTtl+alertMsg);return false;}
return true;}
function doNewUserReset()
{var bt_btn1=document.getElementById("bt_btn1");bt_btn1.value=" Sign Up ";bt_btn1.disabled=false;}
function doNewUserLoad()
{var dob_mon=document.getElementById("bt_dob_mon");var dob_day=document.getElementById("bt_dob_day");var dob_year=document.getElementById("bt_dob_year");for(var day=1;day<=31;day++)
dob_day.options[dob_day.length]=new Option(day.toString(),day.toString(),false,false);for(var mon=1;mon<=12;mon++)
dob_mon.options[dob_mon.length]=new Option(MonthList[mon-1],mon.toString(),false,false);var now=new Date();var YearMax=parseInt(now.getFullYear(),10)-20;for(var year=YearMin;year<=YearMax;year++)
dob_year.options[dob_year.length]=new Option(year.toString(),year.toString(),false,false);}
window.onload=function()
{document.getElementById("bt_form_tbl").style.display="";doNewUserLoad();}
var xmlHttp
function checkUsername2(str,root)
{xmlHttp=GetXmlHttpObject();if(xmlHttp==null)
{alert("Your browser does not support AJAX!");return;}
var action='cekuser';var url=root+"/Roles/checkusername.7";url=url+"/action/"+action+"/user/"+str;xmlHttp.onreadystatechange=stateChangedUser;xmlHttp.open("GET",url,true);xmlHttp.send(null);}
function stateChangedUser()
{if(xmlHttp.readyState==4)
{var balik=xmlHttp.responseText;var posisi=balik.indexOf(',');if(posisi!=-1){var root=balik.slice(0,posisi);var msg=balik.slice(posisi+1);}else{var msg="";var root=balik;}
if(balik.match('1'))
{var pos=msg.indexOf(':');var message=msg.slice(pos+1);document.getElementById("txtUser").innerHTML="<br/><font color='green'>"+message+"</font>";document.getElementById('next_button').src=root+'/images/arrow_right_on.png';document.getElementById('next_button').disabled=false;}else{document.getElementById("txtUser").innerHTML=msg;document.getElementById('next_button').src=root+'/images/arrow_right_off.png';document.getElementById('next_button').disabled=true;}}else{document.getElementById("txtUser").innerHTML="checking..";}}
function checkEmail()
{xmlHttp=GetXmlHttpObject();if(xmlHttp==null)
{alert("Your browser does not support AJAX!");return;}
var str1=document.getElementById("bt_email1").value;var str2=document.getElementById("bt_email2").value;var url="Roles/checkemail.7";url=url+"/email1/"+str1+"/email2/"+str2;xmlHttp.onreadystatechange=stateChangedEmail;xmlHttp.open("GET",url,true);xmlHttp.send(null);}
function stateChangedEmail()
{if(xmlHttp.readyState==4)
{if(xmlHttp.responseText=="valid")
{document.getElementById("txtEmail").innerHTML="<br/><font color=green>Email is ready to use.</font>";document.getElementById('next_button').src='/images/arrow_right_on.png';document.getElementById('next_button').title='Next Page';document.getElementById('next_button').alt='Next Page';document.getElementById('next_button').disabled=false;}else{document.getElementById("txtEmail").innerHTML=xmlHttp.responseText;document.getElementById('next_button').src='/images/arrow_right_off.png';document.getElementById('next_button').title='Next Page Disabled';document.getElementById('next_button').alt='Next Page Disabled';document.getElementById('next_button').disabled=true;}}else{document.getElementById("txtEmail").innerHTML="checking..";}}
function checkPIN()
{xmlHttp=GetXmlHttpObject();if(xmlHttp==null)
{alert("Your browser does not support AJAX!");return;}
var getpin=document.getElementById("transcode");var url="Roles/checkusername.7";url=url+"/pin/"+getpin.value;xmlHttp.onreadystatechange=stateChangedPin;xmlHttp.open("GET",url,true);xmlHttp.send(null);}
function stateChangedPin()
{if(xmlHttp.readyState==4)
{document.getElementById("txtPin").innerHTML=xmlHttp.responseText;}else{document.getElementById("txtPin").innerHTML="checking..";}}
function GetXmlHttpObject()
{var xmlHttp=null;try
{xmlHttp=new XMLHttpRequest();}
catch(e)
{try
{xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");}
catch(e)
{xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");}}
return xmlHttp;}
var ModifyUserFields=new Array("bt_codedeposit|Your Security PIN","bt_firstname|Your First Name","bt_firstname|Your Last Name","bt_mobile|Your Mobile phone","bt_addr1|Your Adresss Information","bt_city|Your City Information","bt_postal|Your Postal Information","bt_language|Your Language","bt_country|Your Country Information");function doModifyUser(formObj)
{if(btFormCheck(formObj,ModifyUserFields,""))
{var args=new Array();args["mobile"]=btGetFormValue(formObj,"bt_mobile");xajax_RegisterUser(args);}}
function checkNumber(str)
{xmlHttp=GetXmlHttpObject();if(xmlHttp==null)
{alert("Your browser does not support AJAX!");return;}
var url="Play/checkfield.7";url=url+"/fieldtocheck/number/data/"+str;xmlHttp.onreadystatechange=stateChangedNumber;xmlHttp.open("GET",url,true);xmlHttp.send(null);}
function stateChangedNumber()
{if(xmlHttp.readyState==4)
{document.getElementById("txtNumber").innerHTML=xmlHttp.responseText;}else{document.getElementById("txtNumber").innerHTML="<br/>checking..";}}
function checkAccNumber(str)
{xmlHttp=GetXmlHttpObject();if(xmlHttp==null)
{alert("Your browser does not support AJAX!");return;}
var data=document.getElementById(str).value;var url="Play/checkfield.7";url=url+"/fieldtocheck/number/data/"+data;xmlHttp.onreadystatechange=stateChangedAccNumber;xmlHttp.open("GET",url,true);xmlHttp.send(null);}
function stateChangedAccNumber()
{if(xmlHttp.readyState==4)
{document.getElementById("txtNumber1").innerHTML=xmlHttp.responseText;}else{document.getElementById("txtNumber1").innerHTML="<br/>checking..";}}
function checkAccNumber2(str)
{xmlHttp=GetXmlHttpObject();if(xmlHttp==null)
{alert("Your browser does not support AJAX!");return;}
var data=document.getElementById(str).value;var url="Play/checkfield.7";url=url+"/fieldtocheck/number/data/"+data;xmlHttp.onreadystatechange=stateChangedNumber2;xmlHttp.open("GET",url,true);xmlHttp.send(null);}
function stateChangedNumber2()
{if(xmlHttp.readyState==4)
{var num1=document.getElementById("bt_accountnumber_Local");var num2=document.getElementById("bt_accountnumber2_Local");if(num1.value==num2.value){document.getElementById("txtNumber2").innerHTML=xmlHttp.responseText;}else{document.getElementById("txtNumber2").innerHTML="<br/><font color='red'>Account number is not match!</font>";}}else{document.getElementById("txtNumber2").innerHTML="<br/>checking..";}}
function checkAccNumber3(str)
{xmlHttp=GetXmlHttpObject();if(xmlHttp==null)
{alert("Your browser does not support AJAX!");return;}
var data=document.getElementById(str).value;var url="Play/checkfield.7";url=url+"/fieldtocheck/number/data/"+data;xmlHttp.onreadystatechange=stateChangeAccNumDepo;xmlHttp.open("GET",url,true);xmlHttp.send(null);}
function stateChangeAccNumDepo()
{if(xmlHttp.readyState==4)
{var num1=document.getElementById("bt_accountnumber");var num2=document.getElementById("bt_accountnumber2");if(num1.value==num2.value){document.getElementById("txtNumber2").innerHTML=xmlHttp.responseText;}else{document.getElementById("txtNumber2").innerHTML="<br/><font color='red'>Account number is not match!</font>";}}else{document.getElementById("txtNumber2").innerHTML="<br/>checking..";}}
function checkAmountNumberChina(){var str=document.getElementById("purchaseAmount").value;if(isNaN(str))
{var Submit=document.getElementById("btn_Submit");Submit.disabled=true;}else{var Submit=document.getElementById("btn_Submit");Submit.disabled=false;}}
function currdeposit()
{xmlHttp=GetXmlHttpObject();if(xmlHttp==null)
{alert("Your browser does not support AJAX!");return;}
var str=document.getElementById("bt_amount").value;var str2=document.getElementById("curr").value;var url="Play/checkfield.7";url=url+"/fieldtocheck/currdeposit/amount/"+str+"/curr/"+str2;xmlHttp.onreadystatechange=stateChangedAmountDeposit;xmlHttp.open("GET",url,true);xmlHttp.send(null);}
function stateChangedAmountDeposit()
{if(xmlHttp.readyState==4)
{document.getElementById("txtDepositAmount").innerHTML=xmlHttp.responseText;}else{document.getElementById("txtDepositAmount").innerHTML="<br/>checking..";}}
function CurrWithdrawal()
{xmlHttp=GetXmlHttpObject();if(xmlHttp==null)
{alert("Your browser does not support AJAX!");return;}
var str=document.getElementById("bt_amount_Local").value;var str2=document.getElementById("curr").value;var url="Play/checkfield.7";url=url+"/fieldtocheck/currwithdrawal/amount/"+str+"/curr/"+str2;xmlHttp.onreadystatechange=stateChangedCurrWithdrawal;xmlHttp.open("GET",url,true);xmlHttp.send(null);}
function stateChangedCurrWithdrawal()
{if(xmlHttp.readyState==4)
{document.getElementById("showConvertLocal").innerHTML=xmlHttp.responseText;}else{document.getElementById("showConvertLocal").innerHTML="<br/>checking...";}}
function clearBlockCurrency()
{document.getElementById("blockcurrency").style.display="none";document.getElementById("bt_amount").style.background="white";document.getElementById("txtWithdrawalCurr").innerHTML="";}
function checkPassword(root){xmlHttp=GetXmlHttpObject();if(xmlHttp==null)
{alert("Your browser does not support AJAX!");return;}
var pass1=document.getElementById("bt_password").value;var pass2=document.getElementById("bt_password2").value;var action='cekpass';var url=root+"/Roles/checkusername.7";url=url+"/action/"+action+"/pass1/"+pass1+"/pass2/"+pass2;xmlHttp.onreadystatechange=stateChangedCurrPass;xmlHttp.open("GET",url,true);xmlHttp.send(null);}
function stateChangedCurrPass()
{if(xmlHttp.readyState==4)
{document.getElementById("txtPassword").innerHTML=xmlHttp.responseText;}else{document.getElementById("txtPassword").innerHTML="<br/>checking...";}}
function balikanpass(msg){document.getElementById("txtPassword").innerHTML=msg;}
function checkForgotPassword()
{var bt_email=document.getElementById("bt_email");var bt_pinnumber=document.getElementById("bt_pinnumber");var bt_sec_code=document.getElementById("bt_sec_code");var haserror=false;var alertMsg="";if(bt_email.value=="")
{alertMsg+=" - Your Current E-Mail\n";bt_email.style.background='red';haserror=true;}else{var email=bt_email.value;if(!email.match(/^[\w-]+(\.[\w-]+)*@([\w-]+\.)+[a-zA-Z]{2,7}$/))
{alertMsg+=" - E-Mail is not valid\n";bt_email.style.background='red';haserror=true;}else{bt_email.style.background='white';}}
if(bt_pinnumber.value==""){alertMsg+=" - Your Security PIN Number\n";bt_pinnumber.style.background="red";haserror=true;}else{bt_pinnumber.style.background="white";}
if(bt_sec_code.value==""){alertMsg+=" - Security Code\n";bt_sec_code.style.background="red";haserror=true;}else{bt_sec_code.style.background="white";}
if(haserror)
{alertMsgTtl="Please complete the following fields :\n";alert(alertMsgTtl+alertMsg);return false;}
return true;}
function checkResetPwd()
{var bt_login=document.getElementById("bt_login");var bt_email=document.getElementById("bt_email");var bt_pinnumber=document.getElementById("bt_pinnumber");var bt_password=document.getElementById("bt_password");var bt_password2=document.getElementById("bt_password2");var bt_sec_code=document.getElementById("bt_sec_code");var haserror=false;var alertMsg="";if(bt_login.value==""){alertMsg+=" - Your Login ID\n";bt_login.style.background="red";haserror=true;}else{bt_login.style.background="white";}
if(bt_email.value==""){alertMsg+=" - Your Email Address\n";bt_email.style.background="red";haserror=true;}else{bt_email.style.background="white";}
if(bt_pinnumber.value==""){alertMsg+=" - Your Security PIN Number\n";bt_pinnumber.style.background="red";haserror=true;}else{bt_pinnumber.style.background="white";}
if(bt_password.value=="")
{alertMsg+=" - Your Password\n";bt_password.style.background='red';haserror=true;}else{var pwd=bt_password.value;if(!pwd.match(/(.){8,15}$/))
{alertMsg+=" - Password Between 8 to 15 Characters\n";bt_password.style.background='red';haserror=true;}else{bt_password.style.background='white';}}
if(bt_password2.value=="")
{alertMsg+=" - Your Password Confirmation\n";bt_password2.style.background='red';haserror=true;}else{if(bt_password.value!=bt_password2.value)
{alertMsg+=" - Passwords does not match\n";bt_password2.style.background='red';haserror=true;}else{bt_password2.style.background='white';}}
if(bt_sec_code.value==""){alertMsg+=" - Security Code\n";bt_sec_code.style.background="red";haserror=true;}else{bt_sec_code.style.background="white";}
if(haserror)
{alertMsgTtl="Please complete the following fields :\n";alert(alertMsgTtl+alertMsg);return false;}
return true;}
function stateChangedCurrCodedeposit()
{if(xmlHttp.readyState==4)
{document.getElementById("txtCodeDepositCurr").innerHTML=xmlHttp.responseText;}else{document.getElementById("txtCodeDepositCurr").innerHTML="checking...";}}
function clearChangeCurr()
{document.getElementById("currentpin").style.display="none";}
function next(){var account=document.getElementById('form1');var personal=document.getElementById('form2');var term=document.getElementById('form3');var bt_username=document.getElementById("bt_username");var bt_password=document.getElementById("bt_password");var bt_password2=document.getElementById("bt_password2");var bt_email1=document.getElementById("bt_email1");var bt_email2=document.getElementById("bt_email2");var bt_bank_acc_name=document.getElementById("bt_bank_acc_name");var bt_bank_acc_num=document.getElementById("bt_bank_acc_num");var bt_mobile=document.getElementById("bt_mobile");var bt_sec_code=document.getElementById("bt_sec_code");var alertMsg="";var haserror=false;var width=350;var height=350;var topX=(window.screen.width/2)-(width/2);var topY=(window.screen.height/2)-(height/2);if(account.style.display=='block'){if(bt_username.value=="")
{alertMsg+=" - Your Desired Player ID<br/>";haserror=true;}else{var user=bt_username.value;if(!user.match(/^[a-zA-Z0-9]{2,12}$/))
{alertMsg+=" - Player ID Between 2 to 12 alpha numeric (A-Z, a-z, 0-9) character only<br/>";haserror=true;}}
if(bt_password.value=="")
{alertMsg+=" - Your Password<br/>";haserror=true;}else{var pwd=bt_password.value;if(!pwd.match(/(.){4,15}$/))
{alertMsg+=" - Password Between 4 to 15 Characters<br/>";haserror=true;}else{}}
if(bt_password2.value=="")
{alertMsg+=" - Your Password Confirmation<br/>";haserror=true;}else{if(bt_password.value!=bt_password2.value)
{alertMsg+=" - Passwords does not match<br/>";haserror=true;}else{}}
if(bt_bank_acc_name.value=="")
{alertMsg+=" - Your Bank Account Name<br/>";haserror=true;}else{}
if(bt_bank_acc_num.value=="")
{alertMsg+=" - Your Bank Account Number<br/>";haserror=true;}else{}
if(haserror){Tip(alertMsg,CLOSEBTN,true,STICKY,true,CLICKCLOSE,false,FADEIN,500,FADEOUT,500,TITLE,'Please complete the following fields :',FIX,[topX,topY],HEIGHT,70);return false;}
account.style.display='none';personal.style.display='block';document.getElementById('prev_button').style.display='block';document.getElementById('next_button').style.display='block';}else{if(personal.style.display=='block'){var email=bt_email1.value;if(!email.match(/^[\w-]+(\.[\w-]+)*@([\w-]+\.)+[a-zA-Z]{2,7}$/)&&email!="")
{alertMsg+=" - E-Mail is not valid<br/>";haserror=true;}else{}
if(bt_email1.value!=bt_email2.value)
{alertMsg+=" - E-Mail doesn't match<br/>";haserror=true;}else{}
if(haserror){Tip(alertMsg,CLOSEBTN,true,STICKY,true,CLICKCLOSE,false,FADEIN,500,FADEOUT,500,TITLE,'Please complete the following fields :',FIX,[topX,topY],HEIGHT,80);return false;}
personal.style.display='none';term.style.display='block';document.getElementById('prev_button').style.display='block';document.getElementById('next_button').style.display='none';}}}
function prev(){var account=document.getElementById('form1');var personal=document.getElementById('form2');var term=document.getElementById('form3');var alertMsg="";var haserror=false;if(term.style.display=='block'){term.style.display='none';personal.style.display='block';document.getElementById('next_button').style.display='block';document.getElementById('prev_button').style.display='block';}else{if(personal.style.display=='block'){personal.style.display='none';account.style.display='block';document.getElementById('prev_button').style.display='none';document.getElementById('next_button').style.display='block';}}}
function open_txt(src){var divID;divID=document.getElementById(src);if(divID.style.display=='none'){divID.style.display='block'}}
function tutup_txt(src){var divID;divID=document.getElementById(src);if(divID.style.display=='block'){divID.style.display='none'}}
function checknewuser2(){var bt_cb1=document.getElementById("bt_cb1");var bt_sec_code=document.getElementById("bt_sec_code");var width=350;var height=350;var topX=(window.screen.width/2)-(width/2);var topY=(window.screen.height/2)-(height/2);var alertMsg="";var haserror=false;if(bt_cb1.checked==false)
{alertMsg+=" - Your Terms Agreenment<br/>";haserror=true;}else{}
if(bt_sec_code.value=="")
{alertMsg+=" - Your Security Code<br/>";haserror=true;}else{}
if(haserror){Tip(alertMsg,CLOSEBTN,true,STICKY,true,CLICKCLOSE,false,FADEIN,500,FADEOUT,500,TITLE,'Please complete the following fields :',FIX,[topX,topY],HEIGHT,80);return false;}}