function accountNumberCheck() { var cookieusername = getCookie("loginname"); if (cookieusername) { document.getElementById("Username").value=cookieusername; } } function loadClient(CheckCookie) { if (getCookie("loginname")=="" && CheckCookie) { window.open("https://www.dreambingo.co.uk/register/dreambingo.aspx?btag=589598530", "BingoRegistrationWindow", "width=840,height=670,status=yes,toolbar=no,menubar=no,location=yes,scrollbars=yes,resizable=no"); } else { window.open("https://www.dreambingo.co.uk/shared/login.aspx", "BingoWindow0", "width=1024,height=700,status=no,toolbar=no,menubar=no,location=no,scrollbars=no,resizable=no"); } } function loadClientWindow(CheckCookie) { if (getCookie("loginname")=="" && CheckCookie) { window.open("https://www.dreambingo.co.uk/register/dreambingo.aspx?btag=589598530", "BingoRegistrationWindow", "width=840,height=670,status=yes,toolbar=no,menubar=no,location=yes,scrollbars=yes,resizable=no"); } else { window.open("https://www.dreambingo.co.uk/shared/login.aspx", "BingoWindow0", "width=1024,height=700,status=no,toolbar=no,menubar=no,location=no,scrollbars=no,resizable=no"); } } function loginBingo(myform) { if (! window.focus)return true; var d = new Date(); windowname = "BingoWindow0"; var popupHandle var thisDoc setCookie("loginname", document.getElementById("Username").value, 365); popupHandle=window.open("https://www.dreambingo.co.uk/shared/close.htm", windowname, "width=1024,height=700,status=no,toolbar=no,menubar=no,location=no,scrollbars=no,resizable=no"); myform.target=windowname; myform.focus(); myform.action="https://www.dreambingo.co.uk/shared/Connect.aspx"; return true; } function setCookie(cookieName,value,expiredays) { var exdate=new Date(); exdate.setDate(exdate.getDate()+expiredays); document.cookie=cookieName+ "=" +escape(value)+((expiredays==null) ? "" : ";expires="+exdate.toGMTString()) } function getCookie(cookieName) { var result = ""; if (document.cookie) { if (document.cookie.length>0) { cookieStart=document.cookie.indexOf(cookieName + "="); if (cookieStart != -1) { cookieStart=cookieStart + cookieName.length + 1; cookieEnd=document.cookie.indexOf(";",cookieStart); if (cookieEnd==-1) { cookieEnd=document.cookie.length; } return trim(unescape(document.cookie.substring(cookieStart,cookieEnd))); } } } return trim(result); } function trim(s) { return s.replace(/^\s+|\s+$/g,""); } function openLostPassword(username){ window.open("/lostpassword.asp?username=" + username, "LostPasswordWindow", "width=430,height=380,status=no,toolbar=no,menubar=no,location=no,scrollbars=no,resizable=no"); return false; }