function switchTabberTabs(ndx)
{
  var style0 = 'none';
  var style1 = 'block';
  
  var bgcol0 = '#545454';
  var bgcol1 = '#ba0741';

  var txcol0 = '#777777';
  var txcol1 = '#ffffff';

  var tab    = 0;
  var nav    = 0;
  var id     = 1;

  do {

    tab = document.getElementById('tabbertab_' + id);
    if ( tab )
    {
      tab.style.display = ndx == id ? style1 : style0; 
    }

    nav = document.getElementById('tabbernav_' + id);
    if ( nav )
    {
      nav.style.backgroundColor = ndx == id ? bgcol1 : bgcol0;
      nav.style.color           = ndx == id ? txcol1 : txcol0;
    }

    id++;
  } while ( tab );
}

function confirmSexCoinsCosts(text, alerttext)
{
  if ( alerttext )
  {
    alert(alerttext);
  }

  if ( confirm(text) )
  {
    return true;
  }

  return false;
}
