lp="nopqrstuvwxyz"
so=0
hp=0
ti=""
ni=0
nb=0
es=0
te=new Array(5)
et=""
on=false
li=false
ra=[false, false, false, false, false]
mi=new Array(52)
id=new Array(4)
di=new Array(4)
tf=""
uo=new Array(11)
sh=""
ux=" 0"
au=0
la=false
ce=new Array(52)
tk=0
nh=new Array(12)
ub=[false, false, false, false, false]
nn=[false, false, false, false, false]
hs=0
fs=false
od=0
is=new Array(11)
ts=""
lo=5
lw=0
os=false
tg=0
nm=1
cl=[false, false, false, false, false]
ph1=new Array(12)
ph2=new Array(12)
ph3=new Array(12)
ph4=new Array(12)
phs=new Array(0,ph1,ph2,ph3,ph4)
fa=0
pp=0
lp+="abcdefghijklm"
ws=new Array(5)
fp=new Array(5)
tt=new Array(5)
fu=false
er=new Array(52)
el=new Array(5)
wa=1
sl=0
ht=0
hw=0
pa=["4","3","2","1"]
hi="5"
mh=""
d1g='<pre ID="handbox">Dealer has ';
d2g='</pre>';
p1g='<pre ID="handbox">Player has ';
p2g='</pre>';
bk1g='<pre ID="bankbox">Bank = ';
bk2g=' coins</pre>';
bt1g='<pre ID="bankbox"> Bet = ';
bt2g=' coins</pre>';
spin1g='<pre ID="spinbox">You Have Blackjack!</pre>'
spin2g='<pre ID="spinbox">  You Get 3 to 2!  </pre>'
msgg1='<pre ID="msg1">Please wait while game is LOADING</pre>';
msgg2='<pre ID="msg2">Place your bet now from 1 to 50<br>Hit the "D E A L" button when ready</pre>';
msgg3='<pre ID="msg2">G A M E&nbsp;&nbsp;&nbsp;O V E R !!<br>Hit "reload" to play again</pre>';
msgg4='<pre ID="msg2">That is all you can bet<br>Hit DEAL to play</pre>';
buttg1='<center><form><input type="button" width="120" value="CLEAR BET" onClick="zf()">&nbsp;<input type="button" width="120" '+
'value="&nbsp;&nbsp;&nbsp;&nbsp;D E A L&nbsp;&nbsp;&nbsp;&nbsp;" onClick="zg()"><br><br><input type="button" width="120" value="&nbsp;&nbsp;&nbsp;BET ONE&nbsp;'+
'&nbsp;&nbsp;" onClick="ze(1)"> <input type="button" width="120" value="&nbsp;&nbsp;&nbsp;BET FIVE&nbsp;&nbsp;" onClick="ze(5)"> <input type="button" width="120" value="BET TWENTY" onClick="ze(20)"></form></center>';
buttg2='<center><form><input type="button" width="120" value="&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;H I T&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;" onClick="y3()"> '+
'<input type="button" width="120" value="&nbsp;&nbsp;&nbsp;S T A N D&nbsp;&nbsp;" onClick="y9()"><br><br><input type="button" width="120" value="SURRENDER" onClick="zz()"> '+
'<input type="button" width="120" value="&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SPLIT&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;" onClick="zu()"> <input type="button" width="120" value="&nbsp;'+
'&nbsp;&nbsp;DOUBLE&nbsp;&nbsp;&nbsp;" onClick="y0()"></form></center>';
head1='<A HREF="javascript:rf(1)"><pre ID="hisbox">Recent Hands</pre></A>'
head2='<A HREF="javascript:rf(2)"><pre ID="hisbox">Cards Used</pre></A>'
head3='<A HREF="javascript:rf(3)"><pre ID="hisbox">Cards Left</pre></A>'
head4='<A HREF="javascript:rf(4)"><pre ID="hisbox">AllTime Hands</pre></A>'
h1g='<center><table border="3" bordercolorlight="#7FAF7F" bordercolordark="#004400"><tr><td ID="histab">10</td><td ID="histab">';me=regname;
h2g='</td></tr><tr><td ID="histab">9</td><td ID="histab">';
h3g='</td></tr><tr><td ID="histab">8</td><td ID="histab">';
h4g='</td></tr><tr><td ID="histab">7</td><td ID="histab">';
h5g='</td></tr><tr><td ID="histab">6</td><td ID="histab">';
h6g='</td></tr><tr><td ID="histab">5</td><td ID="histab">';
h7g='</td></tr><tr><td ID="histab">4</td><td ID="histab">';
h8g='</td></tr><tr><td ID="histab">3</td><td ID="histab">';
h9g='</td></tr><tr><td ID="histab">2</td><td ID="histab">';
h10g='</td></tr><tr><td ID="histab">1</td><td ID="histab">&nbsp;';
hng='</td></tr></table></center>';
c1g='<center><table border="3" bordercolorlight="#7FAF7F" bordercolordark="#004400"><tr><td ID="histab">10</td><td ID="histab" colspan="2">';qp=site;
c2g='</td></tr><tr><td ID="histab">9</td><td ID="histab">';
c3g='</td></tr><tr><td ID="histab">8</td><td ID="histab">';
c4g='</td></tr><tr><td ID="histab">7</td><td ID="histab">';
c5g='</td></tr><tr><td ID="histab">6</td><td ID="histab">';
c6g='</td></tr><tr><td ID="histab">5</td><td ID="histab">';
c7g='</td></tr><tr><td ID="histab">4</td><td ID="histab">';
c8g='</td></tr><tr><td ID="histab">3</td><td ID="histab">';
c9g='</td></tr><tr><td ID="histab">2</td><td ID="histab">';
c10g='</td></tr><tr><td ID="histab">1</td><td ID="histab">&nbsp;';
cng='</td></tr></table></center>';
cxg='</td><td ID="histab" rowspan="9" valign="middle">&nbsp;';
flr='<font color="white"><b>Registered to: '+me+' at: '+qp+'</b></font>'
frr='<font color="white"><b>Copyright &copy; 2000 by Bentstone Capabilities Group</b></font>'
a1g='<center><table border="3" bordercolorlight="#7FAF7F" bordercolordark="#004400"><tr><td ID="histabc" colspan="2">All Time</td></tr>';ng=checks;
a2g='<tr><td ID="histab">W</td><td ID="histab">';
a3g='</td></tr><tr><td ID="histab">P</td><td ID="histab">';
a4g='</td></tr><tr><td ID="histab">L</td><td ID="histab">';
a5g='</td></tr><tr><td ID="histab"><img src="space.gif" width="15" height="1"></td><td ID="histab"><img src="space.gif" width="60" height="1"></td></tr>';
a6g='<tr><td ID="histabc" colspan="2">This Time</td></tr>';
a7g='<tr><td ID="histab">W</td><td ID="histab">';
a8g='</td></tr><tr><td ID="histab">P</td><td ID="histab">';
a9g='</td></tr><tr><td ID="histab">L</td><td ID="histab">';
ang='</td></tr></table></center>';
y0g='<pre ID="pay1">Click for Help!</pre>';
y1g='<pre ID="pay3">Blackjack pays 3 to 2 '+
'in even coins<br>Insurance pays 2 to 1 in even coins<br>'+
'Ties are a "push"</pre>';
y2g='<pre ID="pay1">Insurance set to ';
y3g=' coins</pre>';
y4g='<pre ID="pay1">Insurance declined</pre>';
y5g='<pre ID="pay2">Dealer has BLACKJACK!<br>You get ';
y6g='<pre ID="pay2">Dealer missed it'+
'.<br>Your insurance is lost</pre>';
y7g='<pre ID="pay1">Shuffling ...</pre>';
y8g='<pre ID="pay2">No cards left in Deck!<br>Shuffling '+
'discards to finish hand.</pre>';
y9g='<pre ID="pay2">You have Surrendered the hand!'+
'<br>You get back ';
function jg() {
 sd(spins,gf(spins),gp(bets)-5,200,'hd(spins)');
}

