-
Notifications
You must be signed in to change notification settings - Fork 0
/
happymodel.php
519 lines (506 loc) · 23.7 KB
/
happymodel.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
<?php
include_once("inc/conn.php");
include_once("inc/function.php");
login_check();
if($_GET["act"] =="save"){
$ztsum=0;
for($i = 3; $i < count($_POST["tbNum"])+3; $i ++){
if($_POST["tbChk"][$i]){
$ztsum=$ztsum+$_POST["tbNum"][$i];
}
}
if($ztsum>200000000){
echo "<script language=javascript>alert('sorry,the max amount of every press is 200000000');history.go(-1);</script>";
exit;
}
$tznum=implode("|",$_POST["tbNum"]);
if($_POST["tbID"]){
$db->query("update {$web_dbtop}game16_auto_tz set tzname='".str_check($_POST["tbModelName"])."',tzunm='".str_check($tznum)."',tzpoints=".intval($ztsum)." where id =".intval($_POST["tbID"]));
echo "<script language=javascript>alert('update success');location.href='".($_POST["pointerSubmitGo"]?"happyautoset.php":"happymodel.php")."';</script>";
exit;
}else{
$db->query("INSERT INTO {$web_dbtop}game16_auto_tz (uid,tzname,tzunm,tzpoints,tzid) VALUES (".intval($_COOKIE["usersid"]).",'".str_check($_POST["tbModelName"])."','".str_check($tznum)."',".intval($ztsum).",".intval($_POST["tbModelID"]).")");
echo "<script language=javascript>alert('add success');location.href='".($_POST["pointerSubmitGo"]?"happyautoset.php":"happymodel.php")."';</script>";
exit;
}
}
if($_GET["act"] =="del"){
if($_GET["id"]){
$db->query("delete from {$web_dbtop}game16_auto_tz where id=".intval($_GET["id"]));
echo "<script language=javascript>alert('delete success');location.href='happymodel.php';</script>";
exit;
}else{
echo "<script language=javascript>alert('unable to find this pattern,delete fail');history.go(-1);</script>";
exit;
}
}
$game16tz_array = array();
$query=$db->query("Select * from {$web_dbtop}game16_auto_tz where uid=".intval($_COOKIE["usersid"])." Order by tzid asc");
while($rs=$db->fetch_array($query)){
$tzunm=explode("|",$rs["tzunm"]);
$game16tz_array[]="{\"ID\":\"".$rs["id"]."\",\"modelID\":\"".$rs["tzid"]."\",\"modelName\":\"".$rs["tzname"]."\",\"N3\":\"".$tzunm[0]."\",\"N4\":\"".$tzunm[1]."\",\"N5\":\"".$tzunm[2]."\",\"N6\":\"".$tzunm[3]."\",\"N7\":\"".$tzunm[4]."\",\"N8\":\"".$tzunm[5]."\",\"N9\":\"".$tzunm[6]."\",\"N10\":\"".$tzunm[7]."\",\"N11\":\"".$tzunm[8]."\",\"N12\":\"".$tzunm[9]."\",\"N13\":\"".$tzunm[10]."\",\"N14\":\"".$tzunm[11]."\",\"N15\":\"".$tzunm[12]."\",\"N16\":\"".$tzunm[13]."\",\"N17\":\"".$tzunm[14]."\",\"N18\":\"".$tzunm[15]."\"}";
}
$tzjs=implode(",",$game16tz_array);
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<HTML xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Luck16-Games Center-<?=$web_name;?></title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<meta name="keywords" content="<?=$web_keywords;?>" />
<meta name="description" content="<?=$web_description;?>" />
<META http-equiv=X-UA-Compatible content=IE=EmulateIE7>
<link href="style/default.css" rel="stylesheet" type="text/css" />
</head>
<?php include_once("top.php");?>
<script language="javascript">
qiehuan(2);
document.getElementById("qh_con2").getElementsByTagName('li')[2].className="current";
</script>
<DIV class="wrapper">
<DIV class="page_content">
<DIV class="webgame-info-title">
<UL>
<LI><A href="happy.php">Luck16 home</A></LI>
<LI><A href="happyhelp.php">Luck16 guide</A></LI>
<LI><A href="happymylist.php">My press history</A></LI>
<LI class="current"><A href="happymodel.php">Edit press pattern</A></LI>
<LI><A href="happyautoset.php">Autopress</A></LI>
<LI><A href="happydirection.php">Trend chart</A></LI>
</UL>
</DIV>
<DIV class="webgame-info">
<DIV class="webgame-info-tabs">
<table width="100%" height="27" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="12"><img src="images/game2_03.jpg" width="12" height="27" /></td>
<td background="images/game2_04.jpg" class="font14">Edit press pattern:</td>
<td width="13"><img src="images/game2_06.jpg" width="13" height="27" /></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="5"></td>
</tr>
</table>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td bgcolor="#9F4F18"><form action="?act=save" method="post">
<table width="100%" border="0" cellpadding="0" cellspacing="1">
<tr>
<td height="28" colspan="4" bgcolor="#FFFFFF"> <strong>select pattern£º
<input name="tbID" id="hidID" type="hidden" value="" />
<select name="tbModelID" id="tbModelID" onchange="chgModel(this.selectedIndex)">
<?
$tzname=array("pattern 1","pattern 2","pattern 3","pattern 4","pattern 5","pattern 6","pattern 7","pattern 8","pattern 9","pattern 10",
"pattern 11","pattern 12","pattern 13","pattern 14","pattern 15","pattern 16","pattern 17","pattern 18","pattern19","pattern20",
"pattern 21","pattern 22","pattern 23","pattern24","pattern 25","pattern 26","pattern 27","pattern 28","pattern 29","pattern30",
"pattern 31","pattern 32","pattern 33","pattern 34","pattern 35","pattern 36","pattern 37","pattern 38","pattern 39","pattern 40");
$i=1;
foreach($tzname as $tzarray){
$query=$db->query("Select tzname,tzid from {$web_dbtop}game16_auto_tz where uid=".intval($_COOKIE["usersid"])." and tzid=$i Order by tzid asc");
if($rs=$db->fetch_array($query)){
echo"<option label=\"".$rs["tzname"]."\" value=\"".$i."\">".$rs["tzname"]."</option>";
}else{
echo"<option label=\"".$tzarray."\" value=\"".$i."\">".$tzarray."</option>";
}
$i++;
}
?>
</select>
rename:
<input type="text" maxlength="10" name="tbModelName" id="tbModelName" value="" />
</strong>
<input type="button" value=" reset " onclick="chgModel($('tbModelID').selectedIndex)" />
<!--<input type="button" value=" delete " onclick="window.location.href='happymodel.php?act=del&id='+$('tbID').value" />-->
<input type="button" value=" delete " onclick="window.location.href='happymodel.php?act=del&id='+document.getElementById('hidID').value" />
</td>
</tr>
<tr>
<td height="28" colspan="4" bgcolor="#FFFFFF"><strong> <strong>
<label></label>
</strong>
<label> </label>
pattern detail
<label>£º</label>
</strong></td>
</tr>
<tr>
<td height="28" colspan="4" bgcolor="#FFFFFF">
<input type="hidden" id="hidTimes" value="1" />
<input value=" *0.5 " onclick="chgAllTimes(0.5)" type="button" />
<input value=" *0.8 " onclick="chgAllTimes(0.8)" type="button" />
<input value=" *1.2 " onclick="chgAllTimes(1.2)" type="button" />
<input value=" *1.5 " onclick="chgAllTimes(1.5)" type="button" />
<input value=" *2 " onclick="chgAllTimes(2)" type="button" />
<input value=" *10 " onclick="chgAllTimes(10)" type="button" />
<input value=" *50 " onclick="chgAllTimes(50)" type="button" />
<input value=" *100 " onclick="chgAllTimes(100)" type="button" />
<input name="tbTotalG1" id="tbTotalG1" readonly="readOnly" value="" />
<input name="pointerSubmit2" value=" save " type="submit" />
<input value=" save and start autopress " type="submit" name="pointerSubmitGo" />
</td>
</tr>
<tr>
<td height="28" colspan="4" bgcolor="#FFFFFF" class="rf"> <strong>standard mode£º</strong><span class="pointer" onclick="init()">reset</span> <span class="pointer" onclick="useModel(1)">all</span> <span class="pointer" onclick="useModel(2)">odd</span> <span class="pointer" onclick="useModel(3)">even</span> <span class="pointer" onclick="useModel(4)">big</span> <span class="pointer" onclick="useModel(5)">small</span> <span class="pointer" onclick="useModel(6)">middle</span> <span class="pointer" onclick="useModel(7)">edge</span></td>
</tr>
<tr>
<td width="30%" height="28" align="center" background="images/happy16_40.jpg" bgcolor="#FFFFFF" class="font-white">number list</td>
<td align="center" background="images/happy16_40.jpg" bgcolor="#FFFFFF" class="font-white" style="cursor:pointer;"><font onclick="useModel(1)">select all</font> / <font color="#FF0000" onclick="subSelect();">reverse</font></td>
<td width="30%" align="center" background="images/happy16_40.jpg" bgcolor="#FFFFFF" class="font-white">press option</td>
</tr>
<?
for($i = 3; $i < 19; $i ++){
?>
<tr>
<td height="32" align="center" bgcolor="#FCF5E1" class="font12game"><img src="images/happy/number_<?=$i?>.gif" /></td>
<td align="center" bgcolor="#FFFFFF"><input name="tbChk[<?=$i?>]" id="tbChk<?=$i?>" type="checkbox" onclick="insert(this,'tbNum<?=$i?>')" /></td>
<td align="center" bgcolor="#FFFFFF"><input type="text" size="8" name="tbNum[<?=$i?>]" id="tbNum<?=$i?>" value="" onblur="input(this,'tbChk<?=$i?>')" />
<input type="button" value=" + " onclick="addNum('tbNum<?=$i?>','tbChk<?=$i?>')" />
<input type="button" value=" - " onclick="subtractNum('tbNum<?=$i?>','tbChk<?=$i?>')" />
<input type="button" value=" x2 " onclick="chgTimes('tbNum<?=$i?>',2)" />
<input type="button" value=" x0 " onclick="clearNum('tbNum<?=$i?>','tbChk<?=$i?>')" /></td>
</tr>
<?
}
?>
<tr>
<td height="32" colspan="4" align="center" bgcolor="#FFFFFF">total:
<input id="tbTotalG2" readonly="readOnly" value="" /></td>
</tr>
<tr>
<td height="32" colspan="4" align="center" bgcolor="#FFFFFF"><input name="btnSubmit" value=" save " type="submit" /></td>
</tr>
</table>
</form></td>
</tr>
</table>
<script type="text/javascript">
<!--
var arrModel1 = new Array();
var arrModel2 = new Array();
var arrModel3 = new Array();
var arrModel4 = new Array();
var arrModel5 = new Array();
var arrModel6 = new Array();
var arrModel7 = new Array();
arrModel1[3] = 1;
arrModel1[4] = 3;
arrModel1[5] = 6;
arrModel1[6] = 10;
arrModel1[7] = 15;
arrModel1[8] = 21;
arrModel1[9] = 25;
arrModel1[10] = 27;
arrModel1[11] = 27;
arrModel1[12] = 25;
arrModel1[13] = 21;
arrModel1[14] = 15;
arrModel1[15] = 10;
arrModel1[16] = 6;
arrModel1[17] = 3;
arrModel1[18] = 1;
arrModel2[3] = 1;
arrModel2[4] = 0;
arrModel2[5] = 6;
arrModel2[6] = 0;
arrModel2[7] = 15;
arrModel2[8] = 0;
arrModel2[9] = 25;
arrModel2[10] = 0;
arrModel2[11] = 27;
arrModel2[12] = 0;
arrModel2[13] = 21;
arrModel2[14] = 0;
arrModel2[15] = 10;
arrModel2[16] = 0;
arrModel2[17] = 3;
arrModel2[18] = 0;
arrModel3[3] = 0;
arrModel3[4] = 3;
arrModel3[5] = 0;
arrModel3[6] = 10;
arrModel3[7] = 0;
arrModel3[8] = 21;
arrModel3[9] = 0;
arrModel3[10] = 27;
arrModel3[11] = 0;
arrModel3[12] = 25;
arrModel3[13] = 0;
arrModel3[14] = 15;
arrModel3[15] = 0;
arrModel3[16] = 6;
arrModel3[17] = 0;
arrModel3[18] = 1;
arrModel4[3] = 0;
arrModel4[4] = 0;
arrModel4[5] = 0;
arrModel4[6] = 0;
arrModel4[7] = 0;
arrModel4[8] = 0;
arrModel4[9] = 0;
arrModel4[10] = 0;
arrModel4[11] = 27;
arrModel4[12] = 25;
arrModel4[13] = 21;
arrModel4[14] = 15;
arrModel4[15] = 10;
arrModel4[16] = 6;
arrModel4[17] = 3;
arrModel4[18] = 1;
arrModel5[3] = 1;
arrModel5[4] = 3;
arrModel5[5] = 6;
arrModel5[6] = 10;
arrModel5[7] = 15;
arrModel5[8] = 21;
arrModel5[9] = 25;
arrModel5[10] = 27;
arrModel5[11] = 0;
arrModel5[12] = 0;
arrModel5[13] = 0;
arrModel5[14] = 0;
arrModel5[15] = 0;
arrModel5[16] = 0;
arrModel5[17] = 0;
arrModel5[18] = 0;
arrModel6[3] = 0;
arrModel6[4] = 0;
arrModel6[5] = 0;
arrModel6[6] = 0;
arrModel6[7] = 0;
arrModel6[8] = 21;
arrModel6[9] = 25;
arrModel6[10] = 27;
arrModel6[11] = 27;
arrModel6[12] = 25;
arrModel6[13] = 21;
arrModel6[14] = 0;
arrModel6[15] = 0;
arrModel6[16] = 0;
arrModel6[17] = 0;
arrModel6[18] = 0;
arrModel7[3] = 1;
arrModel7[4] = 3;
arrModel7[5] = 6;
arrModel7[6] = 10;
arrModel7[7] = 15;
arrModel7[8] = 0;
arrModel7[9] = 0;
arrModel7[10] = 0;
arrModel7[11] = 0;
arrModel7[12] = 0;
arrModel7[13] = 0;
arrModel7[14] = 15;
arrModel7[15] = 10;
arrModel7[16] = 6;
arrModel7[17] = 3;
arrModel7[18] = 1;
var insertG = 10;
function init(){
for(i=3;i<=18;i++){
if(document.getElementById("tbNum"+i).readOnly == false){
document.getElementById("tbChk"+i).checked = false;
document.getElementById("tbNum"+i).value = 0;
}
}
document.getElementById("hidTimes").value = 1;
document.getElementById("tbTotalG1").value = 0;
document.getElementById("tbTotalG2").value = 0;
}
function addNum(numID,chkID){
document.getElementById(numID).value=document.getElementById(numID).value==''?0:document.getElementById(numID).value;
document.getElementById("tbTotalG1").value = document.getElementById("tbTotalG2").value = parseInt(document.getElementById("tbTotalG1").value) + insertG;
document.getElementById(numID).value = parseInt(document.getElementById(numID).value) + insertG;
document.getElementById(chkID).checked = true;
}
function subtractNum(numID,chkID){
if(document.getElementById(numID).value!=''){
var subValue = parseInt(document.getElementById(numID).value) > insertG ? insertG : parseInt(document.getElementById(numID).value)
document.getElementById("tbTotalG1").value = document.getElementById("tbTotalG2").value = parseInt(document.getElementById("tbTotalG1").value) - subValue;
document.getElementById(numID).value = parseInt(document.getElementById(numID).value) - subValue;
if(document.getElementById(numID).value=='0'){
document.getElementById(chkID).checked = false;
}
}
}
function chgTimes(numID,times){
if(parseInt(document.getElementById(numID).value * times) > 0){
document.getElementById("tbTotalG1").value = parseInt(document.getElementById("tbTotalG1").value) + parseInt(document.getElementById(numID).value) * times - parseInt(document.getElementById(numID).value);
document.getElementById("tbTotalG2").value = document.getElementById("tbTotalG1").value;
document.getElementById(numID).value = parseInt(document.getElementById(numID).value) * times;
}
}
function clearNum(numID,chkID){
document.getElementById("tbTotalG1").value = document.getElementById("tbTotalG2").value = parseInt(document.getElementById("tbTotalG1").value) - parseInt(document.getElementById(numID).value);
document.getElementById(numID).value = 0;
document.getElementById(chkID).checked = false;
}
function insert(obj,numID){
if(obj.checked){
document.getElementById(numID).value = insertG;
if(document.getElementById("tbTotalG1").value == ""){
document.getElementById("tbTotalG1").value = 0;
}
document.getElementById("tbTotalG1").value = parseInt(document.getElementById("tbTotalG1").value) + insertG;
}
else{
if(document.getElementById("tbTotalG1").value == ""){
document.getElementById("tbTotalG1").value = 0;
}
document.getElementById("tbTotalG1").value = parseInt(document.getElementById("tbTotalG1").value) - parseInt(document.getElementById(numID).value);
document.getElementById(numID).value = 0;
}
document.getElementById("tbTotalG2").value = document.getElementById("tbTotalG1").value;
}
function input(obj,chkID){
if(obj.value<=0){
obj.value=0;
}
if(obj.readOnly == false){
var tmpMoney=0;
if(obj.value != ""){
if(chkInt(obj.value)==false){
obj.value = 0;
}
if(obj.value != 0){
document.getElementById(chkID).checked = true;
}
else{
document.getElementById(chkID).checked = false;
}
}
else{
document.getElementById(chkID).checked = false;
}
for(i=3;i<=18;i++){
var id = document.getElementById("tbNum"+i);
if(id.readOnly == false){
if(id.value != ""){
tmpMoney += parseInt(id.value);
}
}
}
document.getElementById("tbTotalG1").value = document.getElementById("tbTotalG2").value = tmpMoney;
}
}
function useModel(index){
init();
var arrModel = eval("arrModel"+index);
for(i=3;i<arrModel.length;i++){
if(document.getElementById("tbNum"+i).readOnly == false){
document.getElementById("tbChk"+i).checked = false;
if(arrModel[i] > 0){
document.getElementById("tbNum"+i).value = arrModel[i];
document.getElementById("tbChk"+i).checked = true;
document.getElementById("tbTotalG1").value = parseInt(document.getElementById("tbTotalG1").value) + arrModel[i];
document.getElementById("tbTotalG2").value = parseInt(document.getElementById("tbTotalG2").value) + arrModel[i];
}
}
}
}
function subSelect(){
var arrModel = eval("arrModel1");
for(i=3;i<arrModel.length;i++){
if(document.getElementById("tbNum"+i).readOnly == false){
if(arrModel[i] > 0){
if(document.getElementById("tbChk"+i).checked==false){
document.getElementById("tbNum"+i).value = Math.floor(arrModel[i] * document.getElementById("hidTimes").value);
document.getElementById("tbChk"+i).checked = true;
document.getElementById("tbTotalG1").value = Math.floor(parseInt(document.getElementById("tbTotalG1").value) + arrModel[i] * document.getElementById("hidTimes").value);
document.getElementById("tbTotalG2").value = Math.floor(parseInt(document.getElementById("tbTotalG2").value) + arrModel[i] * document.getElementById("hidTimes").value);
}
else{
document.getElementById("tbChk"+i).checked = false;
document.getElementById("tbTotalG1").value = parseInt(document.getElementById("tbTotalG1").value) - document.getElementById("tbNum"+i).value;
document.getElementById("tbTotalG2").value = parseInt(document.getElementById("tbTotalG2").value) - document.getElementById("tbNum"+i).value;
document.getElementById("tbNum"+i).value = 0;
}
}
}
}
}
function chgModel(index){
init();
var modelID = document.getElementById("tbModelID").options[index].value;
document.getElementById("hidID").value = '';
var flag = false;
var result = {"arrJsonModel":[<?=$tzjs?>]};
if(result.arrJsonModel != null){
document.getElementById("tbModelName").value = document.getElementById("tbModelID").options[index].text;
for(i=0;i<result.arrJsonModel.length;i++){
if(result.arrJsonModel[i].modelID==modelID){
flag = true;
index = i;
}
}
if(flag){
for(j=3;j<=18;j++){
if(eval("result.arrJsonModel[index].N"+j) > 0){
if(document.getElementById("tbNum"+j).readOnly == false){
document.getElementById("tbChk"+j).checked = true;
document.getElementById("tbNum"+j).value = eval("result.arrJsonModel[index].N"+j);
document.getElementById("tbTotalG1").value = parseInt(document.getElementById("tbTotalG1").value) + parseInt(eval("result.arrJsonModel[index].N"+j));
}
}
}
document.getElementById("tbTotalG2").value = document.getElementById("tbTotalG1").value;
document.getElementById("hidID").value = result.arrJsonModel[index].ID;
}
}
}
chgModel(0);
function chgAllTimes(times){
document.getElementById("hidTimes").value=document.getElementById("hidTimes").value * times;
for(i=3;i<=18;i++){
if(document.getElementById("tbNum"+i).readOnly == false){
if(parseInt(document.getElementById("tbNum"+i).value) * times > 1){
if(document.getElementById("tbNum"+i).value > 0){
document.getElementById("tbTotalG1").value = parseInt(document.getElementById("tbTotalG1").value) + Math.floor(parseInt(document.getElementById("tbNum"+i).value) * times) - parseInt(document.getElementById("tbNum"+i).value);
document.getElementById("tbTotalG2").value = document.getElementById("tbTotalG1").value;
document.getElementById("tbNum"+i).value = Math.floor(parseInt(document.getElementById("tbNum"+i).value) * times);
document.getElementById("tbChk"+i).checked = true;
}
}
else{
if(document.getElementById("tbNum"+i).value > 0){
document.getElementById("tbTotalG1").value = parseInt(document.getElementById("tbTotalG1").value) - parseInt(document.getElementById("tbNum"+i).value);
document.getElementById("tbTotalG2").value = document.getElementById("tbTotalG1").value;
document.getElementById("tbNum"+i).value = 0;
document.getElementById("tbChk"+i).checked = false;
}
}
}
}
}
function chkInt(int,minLength,maxLength,pattern){
pattern = typeof(pattern) == 'undefined' ? '^-?[1-9]+[0-9]*$' : pattern;
pattern = new RegExp(pattern);
if(pattern.test(int)==false){
return false;
}
return chkStrLen(int,minLength,maxLength);
}
function chkStrLen(str,minLength,maxLength){
if(str.length < minLength) {
return false;
}
if(maxLength != null && str.length > maxLength) {
return false;
}
return true;
}
function $(obj){
return typeof(obj) == "string" ? document.getElementById(obj) : obj;
}
-->
</script>
</DIV>
<DIV class=cl></DIV>
</DIV>
<DIV class="area960-b h5px"></DIV>
<!--Flink End-->
<div class="blank10"></div>
<!--Footer Start-->
<?php include_once("footer.php");?>
</DIV>