


// generic window popup function
var strWin;
function windowPopUp (strURL,
strWinName,
iWinWidth,
iWinHeight,
strScrollBar,
strResize,
strToolbar,
strMenuBar) {

  if (strScrollBar == "yes") {
    if (is.ie == true || is.ns == true) { iWinWidth = iWinWidth + 16; }
  }

  // not first time we've opened the window?
  if (strWin!=null) {

    // window is open now?
    if (!strWin.closed) {
      // focus on it twice, sometimes the browser does not focus properly with one call only
      strWin.focus();
      strWin.focus();
    }
  }

  // open the window
  strWin = window.open(strURL,strWinName, "toolbar="+strToolbar+",scrollbars="+strScrollBar+",location=0,directories=0,status=1,resizable="+strResize+",width="+iWinWidth+",height="+iWinHeight+",menubar="+strMenuBar);

}


// generic reg popup
function go_register () {
  // windowPopUp('https://' + host + '/secure/bet-meccabingo?action=GoRegister', 'register', 700, 600, 1, 0, 0, 0);
  windowPopUp('https://www.meccabingo.com/secure/bet-meccabingo?action=GoRegister', 'register', 800, 600, 1, 0, 0, 0);
}


// generic deposit popup
function go_deposit () {
  windowPopUp('https://' + host + '/secure/bet-meccabingo?action=go_acct_login', 'account', 750, 600, 1, 0, 0, 0);
}

// generic reg popup
function go_play_online () {
  document.location.href = '/bingo/onlinebingo.php';
}

// generic signup popup
function sign_up () {
  document.location.href = '/bingo/signup.php';
}




