var ip = "38.103.63.16"; window.name = "splashpage"; w_id = "splashpage"; function loginButtonClicked () { document.fmLogin.cust_ip.value = ip; document.fmLogin.submit(); } function newaccount() { var url; url = "https://www.ladbrokes.com//lbr_portal?action=go_register&casino_aff=default&popupReg=1&id=home&return_url=http^//www.ladbrokes.com/lbr_portal?action=go_portal_home~CTXT=PORTAL&w_id=20060208091915&system_source=OBE&w_id=splashpage"; reg_win = go_url(url,640,590,'Y','regwindow','','','','Y'); } function go_url (url,width,height,new_win,name,resize,scroll,menu,status) { url = add_to_url(url, "w_id=" + w_id); if (new_win=="Y") { go_new_window(url,width,height,name,resize,scroll,menu,status); } else { document.getElementById('mainLadbrokes').src=url; } } function go_new_window (url,width,height,name,resize,scroll,menu,status) { if (resize == "N") { resize = "no"; } else { resize = "yes"; } if (scroll == "N") { scroll = "no"; } else { scroll = "yes"; } if (menu == "Y") { menu = "yes"; } else { menu = "no"; } if (width != "" && height != "") { dimensions = ",width=" + width + ",height=" + height; } else { dimensions = ""; } if (name == "") { name == "helpwin"; } if (status == "Y") { status = ",status=yes"; } else if (status == "N") { status = ",status=no"; } else { status = ""; } var newWindow = window.open(url, name, "scrollbars=" + scroll + ",resizable=" + resize + ",menubar=" + menu + dimensions + status); newWindow.focus(); return newWindow; } function goBank () { account('accounthelp_deposit.html','accounthelp',1); } function go_unlock() { var unlock_url = 'https://www.ladbrokes.com//lbr_portal?action=go_unlock_cust_account&retURL_good=http^//www.ladbrokes.com/lbr_portal?action=go_portal_home~CTXT=PORTAL&w_id=splashpage'; unlockWindow = parent.open(unlock_url,'Unlock','width=540,height=300,resizable=yes,status=yes'); unlockWindow.focus(); } function account (start,mid,stat) { var url = "https://www.ladbrokes.com//lbr_portal?action=go_acct_main&casino_aff=default&ext_acct=SPORTS&w_id="+parent.w_id; if (start != null) { url = url + "&start=" + start; } if (mid != null) { url += "&mid=" + mid; } if (stat != null) { url += "&static=" + stat; } acct_win = go_url(url,750,650,'Y','acctwindow','','','','Y'); } function add_to_url (url,extra) { if (url.indexOf("?") == -1) { return url + "?" + extra; } else { return url + "&" + extra; } }