function openWindow(l,w,h,t) { if (!w) { w = screen.width*.70; } if (!h) { h = screen.height*.80; } t = t ? ',toolbar' : ''; var wdo = window.open(l,'DMTCWindow','width='+w+',height='+h+',left=20,top=50,scrollbars,resizable'+t); wdo.focus(); } function link(url, parent) { if (parent) { setTimeout("parent.location.href = '"+ url +"';", 200); } else { setTimeout("location.href = '"+ url +"';", 200); } window.status = url; return; } function toggleNav (k) { var o = null; o = document.getElementById('div_'+k); if (!o) return; if ((cookieVal(k) && o.style.display == '') || o.style.display == 'none') { o.style.display = 'block'; setTimeout("document.images['img_"+k+"'].src = '/images/arrow_on.gif';",100); setCookie(k,'true'); } else { o.style.display = 'none'; setTimeout("document.images['img_"+k+"'].src = '/images/arrow_off.gif';",100); setCookie(k,''); } return; } function nothing() { return; } var DMB = null; function DelMarBets(pg) { if (DMB && !DMB.closed) DMB.close(); var w = 900; var h = 600; var top = Math.floor((screen.height / 2) - (h/2) - 50); if (top < 0) top = 0; var left = Math.floor((screen.width / 2) - (w / 2)); if (left < 0) left = 0; var url = 'https://delmarbetsecure.xb-online.com'; if (pg == 'reg') url = 'https://delmarbetsecure.xpressbet.com/signup/signup2a.aspx'; if (pg == 'forgot') url = 'https://delmarbetsecure.xpressbet.com/forgotpassword.aspx'; if (pg == 'reactivate') url = 'https://delmarbetsecure.xpressbet.com/reopen_acct.aspx'; DMB = window.open(url,'DelMarBets','resizable,scrollbars,width='+ w +',height='+ h +',top=' + top + ',left=' + left); DMB.focus(); }