-
Notifications
You must be signed in to change notification settings - Fork 225
/
index.html
566 lines (535 loc) · 23.4 KB
/
index.html
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
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Monopoly</title>
<meta http-equiv="Content-type" content="text/html;charset=UTF-8" />
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script type="text/javascript" src="classicedition.js"></script>
<!-- Comment out the previous line and uncomment the next one to enable the New York City Edition -->
<!-- <script type="text/javascript" src="newyorkcityedition.js"></script> -->
<script type="text/javascript" src="ai.js"></script>
<script type="text/javascript" src="monopoly.js"></script>
<link rel="stylesheet" type="text/css" href="styles.css" />
</head>
<body>
<div id="popupbackground"></div>
<div id="popupwrap">
<div id="popup">
<div style="position: relative;">
<!-- <img id="popupclose" src="Images/close.png" title="Close" alt="x" onclick="hide('popupbackground'); hide('popupwrap');" /> -->
<div id="popuptext"></div>
<div id="popupdrag"></div>
</div>
</div>
</div>
<div id="statsbackground"></div>
<div id="statswrap">
<div id="stats">
<div style="position: relative;">
<img id="statsclose" src="images/close.png" title="Close" alt="x" />
<div id="statstext"></div>
<div id="statsdrag"></div>
</div>
</div>
</div>
<p id="noscript">
Note: This page will not function without JavaScript.
</p>
<div id="refresh">
Refresh this page to start a new game.
</div>
<!-- <div id="enlarge"></div> -->
<div id="deed">
<div id="deed-normal" style="display: none;">
<div id="deed-header">
<div style="margin: 5px; font-size: 11px;">T I T L E D E E D</div>
<div id="deed-name"></div>
</div>
<table id="deed-table">
<tr>
<td colspan="2">
RENT $<span id="deed-baserent">12</span>.
</td>
</tr>
<tr>
<td style="text-align: left;">With 1 House</td>
<td style="text-align: right;">$ <span id="deed-rent1">60</span>.</td>
</tr>
<tr>
<td style="text-align: left;">With 2 Houses</td>
<td style="text-align: right;"><span id="deed-rent2">180</span>.</td>
</tr>
<tr>
<td style="text-align: left;">With 3 Houses</td>
<td style="text-align: right;"><span id="deed-rent3">500</span>.</td>
</tr>
<tr>
<td style="text-align: left;">With 4 Houses</td>
<td style="text-align: right;"><span id="deed-rent4">700</span>.</td>
</tr>
<tr>
<td colspan="2">
<div style="margin-bottom: 8px;">With HOTEL $<span id="deed-rent5">900</span>.</div>
<div>Mortgage Value $<span id="deed-mortgage">80</span>.</div>
<div>Houses cost $<span id="deed-houseprice">100</span>. each</div>
<div>Hotels, $<span id="deed-hotelprice">100</span>. plus 4 houses</div>
<div style="font-size: 9px; font-style: italic; margin-top: 5px;">If a player owns ALL the Lots of any Color-Group, the rent is Doubled on Unimproved Lots in that group.</div>
</td>
</tr>
</table>
</div>
<div id="deed-mortgaged">
<div id="deed-mortgaged-name"></div>
<p>•</p>
<div>MORTGAGED</div>
<div> for $<span id="deed-mortgaged-mortgage">80</span></div>
<p>•</p>
<div style="font-style: italic; font-size: 13px; margin: 10px;">Card must be turned this side up if property is mortgaged</div>
</div>
<div id="deed-special">
<div id="deed-special-name"></div>
<div id="deed-special-text"></div>
<div id="deed-special-footer">
Mortgage Value
<span style="float: right;">$<span id="deed-special-mortgage">100</span>.</span>
</div>
</div>
</div>
<table id="board">
<tr>
<td class="cell board-corner" id="cell20"></td>
<td class="cell board-top" id="cell21"></td>
<td class="cell board-top" id="cell22"></td>
<td class="cell board-top" id="cell23"></td>
<td class="cell board-top" id="cell24"></td>
<td class="cell board-top" id="cell25"></td>
<td class="cell board-top" id="cell26"></td>
<td class="cell board-top" id="cell27"></td>
<td class="cell board-top" id="cell28"></td>
<td class="cell board-top" id="cell29"></td>
<td class="cell board-corner" id="cell30"></td>
</tr><tr>
<td class="cell board-left" id="cell19"></td>
<td colspan="9" class="board-center"></td>
<td class="cell board-right" id="cell31"></td>
</tr><tr>
<td class="cell board-left" id="cell18"></td>
<td colspan="9" class="board-center"></td>
<td class="cell board-right" id="cell32"></td>
</tr><tr>
<td class="cell board-left" id="cell17"></td>
<td colspan="9" class="board-center"></td>
<td class="cell board-right" id="cell33"></td>
</tr><tr>
<td class="cell board-left" id="cell16"></td>
<td colspan="9" class="board-center"></td>
<td class="cell board-right" id="cell34"></td>
</tr><tr>
<td class="cell board-left" id="cell15"></td>
<td colspan="9" class="board-center"></td>
<td class="cell board-right" id="cell35"></td>
</tr><tr>
<td class="cell board-left" id="cell14"></td>
<td colspan="9" class="board-center"></td>
<td class="cell board-right" id="cell36"></td>
</tr><tr>
<td class="cell board-left" id="cell13"></td>
<td colspan="9" class="board-center"></td>
<td class="cell board-right" id="cell37"></td>
</tr><tr>
<td class="cell board-left" id="cell12"></td>
<td colspan="9" class="board-center"></td>
<td class="cell board-right" id="cell38"></td>
</tr><tr>
<td class="cell board-left" id="cell11"></td>
<td colspan="9" class="board-center">
<div id="jail"></div>
</td>
<td class="cell board-right" id="cell39"></td>
</tr><tr>
<td class="cell board-corner" id="cell10"></td>
<td class="cell board-bottom" id="cell9"></td>
<td class="cell board-bottom" id="cell8"></td>
<td class="cell board-bottom" id="cell7"></td>
<td class="cell board-bottom" id="cell6"></td>
<td class="cell board-bottom" id="cell5"></td>
<td class="cell board-bottom" id="cell4"></td>
<td class="cell board-bottom" id="cell3"></td>
<td class="cell board-bottom" id="cell2"></td>
<td class="cell board-bottom" id="cell1"></td>
<td class="cell board-corner" id="cell0"></td>
</tr>
</table>
<div id="moneybarwrap">
<div id="moneybar">
<table>
<tr id="moneybarrow1" class="money-bar-row">
<td class="moneybararrowcell"><img src="images/arrow.png" id="p1arrow" class="money-bar-arrow" alt=">"/></td>
<td id="p1moneybar" class="moneybarcell">
<div><span id="p1moneyname" >Player 1</span>:</div>
<div>$<span id="p1money">1500</span></div>
</td>
</tr>
<tr id="moneybarrow2" class="money-bar-row">
<td class="moneybararrowcell"><img src="images/arrow.png" id="p2arrow" class="money-bar-arrow" alt=">" /></td>
<td id="p2moneybar" class="moneybarcell">
<div><span id="p2moneyname" >Player 2</span>:</div>
<div>$<span id="p2money">1500</span></div>
</td>
</tr>
<tr id="moneybarrow3" class="money-bar-row">
<td class="moneybararrowcell"><img src="images/arrow.png" id="p3arrow" class="money-bar-arrow" alt=">" /></td>
<td id="p3moneybar" class="moneybarcell">
<div><span id="p3moneyname" >Player 3</span>:</div>
<div>$<span id="p3money">1500</span></div>
</td>
</tr>
<tr id="moneybarrow4" class="money-bar-row">
<td class="moneybararrowcell"><img src="images/arrow.png" id="p4arrow" class="money-bar-arrow" alt=">" /></td>
<td id="p4moneybar" class="moneybarcell">
<div><span id="p4moneyname" >Player 4</span>:</div>
<div>$<span id="p4money">1500</span></div>
</td>
</tr>
<tr id="moneybarrow5" class="money-bar-row">
<td class="moneybararrowcell"><img src="images/arrow.png" id="p5arrow" class="money-bar-arrow" alt=">" /></td>
<td id="p5moneybar" class="moneybarcell">
<div><span id="p5moneyname" >Player 5</span>:</div>
<div>$<span id="p5money">1500</span></div>
</td>
</tr>
<tr id="moneybarrow6" class="money-bar-row">
<td class="moneybararrowcell"><img src="images/arrow.png" id="p6arrow" class="money-bar-arrow" alt=">" /></td>
<td id="p6moneybar" class="moneybarcell">
<div><span id="p6moneyname" >Player 6</span>:</div>
<div>$<span id="p6money">1500</span></div>
</td>
</tr>
<tr id="moneybarrow7" class="money-bar-row">
<td class="moneybararrowcell"><img src="images/arrow.png" id="p7arrow" class="money-bar-arrow" alt=">" /></td>
<td id="p7moneybar" class="moneybarcell">
<div><span id="p7moneyname" >Player 7</span>:</div>
<div>$<span id="p7money">1500</span></div>
</td>
</tr>
<tr id="moneybarrow8" class="money-bar-row">
<td class="moneybararrowcell"><img src="images/arrow.png" id="p8arrow" class="money-bar-arrow" alt=">" /></td>
<td id="p8moneybar" class="moneybarcell">
<div><span id="p8moneyname" >Player 8</span>:</div>
<div>$<span id="p8money">1500</span></div>
</td>
</tr>
<tr id="moneybarrowbutton">
<td class="moneybararrowcell"> </td>
<td style="border: none;">
<input type="button" id="viewstats" value="View stats" title="View a pop-up window that shows a list of each player's properties." />
</td>
</tr>
</table>
</div>
</div>
<div id="setup">
<div style="margin-bottom: 20px;">
Select number of players.
<select id="playernumber" title="Select the number of players for the game.">
<option>2</option>
<option>3</option>
<option selected="selected">4</option>
<option>5</option>
<option>6</option>
<option>7</option>
<option>8</option>
</select>
</div>
<div id="player1input" class="player-input">
Player 1: <input type="text" id="player1name" title="Player name" maxlength="16" value="Player 1" />
<select id="player1color" title="Player color">
<option style="color: aqua;">Aqua</option>
<option style="color: black;">Black</option>
<option style="color: blue;">Blue</option>
<option style="color: fuchsia;">Fuchsia</option>
<option style="color: gray;">Gray</option>
<option style="color: green;">Green</option>
<option style="color: lime;">Lime</option>
<option style="color: maroon;">Maroon</option>
<option style="color: navy;">Navy</option>
<option style="color: olive;">Olive</option>
<option style="color: orange;">Orange</option>
<option style="color: purple;">Purple</option>
<option style="color: red;">Red</option>
<option style="color: silver;">Silver</option>
<option style="color: teal;">Teal</option>
<option selected="selected" style="color: yellow;">Yellow</option>
</select>
<select id="player1ai" title="Choose whether this player is controled by a human or by the computer." onclick="document.getElementById('player1name').disabled = this.value !== '0';">
<option value="0" selected="selected">Human</option>
<option value="1">AI (Test)</option>
</select>
</div>
<div id="player2input" class="player-input">
Player 2: <input type="text" id="player2name" title="Player name" maxlength="16" value="Player 2" />
<select id="player2color" title="Player color">
<option style="color: aqua;">Aqua</option>
<option style="color: black;">Black</option>
<option selected="selected" style="color: blue;">Blue</option>
<option style="color: fuchsia;">Fuchsia</option>
<option style="color: gray;">Gray</option>
<option style="color: green;">Green</option>
<option style="color: lime;">Lime</option>
<option style="color: maroon;">Maroon</option>
<option style="color: navy;">Navy</option>
<option style="color: olive;">Olive</option>
<option style="color: orange;">Orange</option>
<option style="color: purple;">Purple</option>
<option style="color: red;">Red</option>
<option style="color: silver;">Silver</option>
<option style="color: teal;">Teal</option>
<option style="color: yellow;">Yellow</option>
</select>
<select id="player2ai" title="Choose whether this player is controled by a human or by the computer." onclick="document.getElementById('player2name').disabled = this.value !== '0';">
<option value="0" selected="selected">Human</option>
<option value="1">AI (Test)</option>
</select>
</div>
<div id="player3input" class="player-input">
Player 3: <input type="text" id="player3name" title="Player name" maxlength="16" value="Player 3" />
<select id="player3color" title="Player color">
<option style="color: aqua;">Aqua</option>
<option style="color: black;">Black</option>
<option style="color: blue;">Blue</option>
<option style="color: fuchsia;">Fuchsia</option>
<option style="color: gray;">Gray</option>
<option style="color: green;">Green</option>
<option style="color: lime;">Lime</option>
<option style="color: maroon;">Maroon</option>
<option style="color: navy;">Navy</option>
<option style="color: olive;">Olive</option>
<option style="color: orange;">Orange</option>
<option style="color: purple;">Purple</option>
<option selected="selected" style="color: red;">Red</option>
<option style="color: silver;">Silver</option>
<option style="color: teal;">Teal</option>
<option style="color: yellow;">Yellow</option>
</select>
<select id="player3ai" title="Choose whether this player is controled by a human or by the computer." onclick="document.getElementById('player3name').disabled = this.value !== '0';">
<option value="0" selected="selected">Human</option>
<option value="1">AI (Test)</option>
</select>
</div>
<div id="player4input" class="player-input">
Player 4: <input type="text" id="player4name" title="Player name" maxlength="16" value="Player 4" />
<select id="player4color" title="Player color">
<option style="color: aqua;">Aqua</option>
<option style="color: black;">Black</option>
<option style="color: blue;">Blue</option>
<option style="color: fuchsia;">Fuchsia</option>
<option style="color: gray;">Gray</option>
<option style="color: green;">Green</option>
<option selected="selected" style="color: lime;">Lime</option>
<option style="color: maroon;">Maroon</option>
<option style="color: navy;">Navy</option>
<option style="color: olive;">Olive</option>
<option style="color: orange;">Orange</option>
<option style="color: purple;">Purple</option>
<option style="color: red;">Red</option>
<option style="color: silver;">Silver</option>
<option style="color: teal;">Teal</option>
<option style="color: yellow;">Yellow</option>
</select>
<select id="player4ai" title="Choose whether this player is controled by a human or by the computer." onclick="document.getElementById('player4name').disabled = this.value !== '0';">
<option value="0" selected="selected">Human</option>
<option value="1">AI (Test)</option>
</select>
</div>
<div id="player5input" class="player-input">
Player 5: <input type="text" id="player5name" title="Player name" maxlength="16" value="Player 5" />
<select id="player5color" title="Player color">
<option style="color: aqua;">Aqua</option>
<option style="color: black;">Black</option>
<option style="color: blue;">Blue</option>
<option style="color: fuchsia;">Fuchsia</option>
<option style="color: gray;">Gray</option>
<option selected="selected" style="color: green;">Green</option>
<option style="color: lime;">Lime</option>
<option style="color: maroon;">Maroon</option>
<option style="color: navy;">Navy</option>
<option style="color: olive;">Olive</option>
<option style="color: orange;">Orange</option>
<option style="color: purple;">Purple</option>
<option style="color: red;">Red</option>
<option style="color: silver;">Silver</option>
<option style="color: teal;">Teal</option>
<option style="color: yellow;">Yellow</option>
</select>
<select id="player5ai" title="Choose whether this player is controled by a human or by the computer." onclick="document.getElementById('player5name').disabled = this.value !== '0';">
<option value="0" selected="selected">Human</option>
<option value="1">AI (Test)</option>
</select>
</div>
<div id="player6input" class="player-input">
Player 6: <input type="text" id="player6name" title="Player name" maxlength="16" value="Player 6" />
<select id="player6color" title="Player color">
<option selected="selected" style="color: aqua;">Aqua</option>
<option style="color: black;">Black</option>
<option style="color: blue;">Blue</option>
<option style="color: fuchsia;">Fuchsia</option>
<option style="color: gray;">Gray</option>
<option style="color: green;">Green</option>
<option style="color: lime;">Lime</option>
<option style="color: maroon;">Maroon</option>
<option style="color: navy;">Navy</option>
<option style="color: olive;">Olive</option>
<option style="color: orange;">Orange</option>
<option style="color: purple;">Purple</option>
<option style="color: red;">Red</option>
<option style="color: silver;">Silver</option>
<option style="color: teal;">Teal</option>
<option style="color: yellow;">Yellow</option>
</select>
<select id="player6ai" title="Choose whether this player is controled by a human or by the computer." onclick="document.getElementById('player6name').disabled = this.value !== '0';">
<option value="0" selected="selected">Human</option>
<option value="1">AI (Test)</option>
</select>
</div>
<div id="player7input" class="player-input">
Player 7: <input type="text" id="player7name" title="Player name" maxlength="16" value="Player 7" />
<select id="player7color" title="Player color">
<option style="color: aqua;">Aqua</option>
<option style="color: black;">Black</option>
<option style="color: blue;">Blue</option>
<option style="color: fuchsia;">Fuchsia</option>
<option style="color: gray;">Gray</option>
<option style="color: green;">Green</option>
<option style="color: lime;">Lime</option>
<option style="color: maroon;">Maroon</option>
<option style="color: navy;">Navy</option>
<option style="color: olive;">Olive</option>
<option selected="selected" style="color: orange;">Orange</option>
<option style="color: purple;">Purple</option>
<option style="color: red;">Red</option>
<option style="color: silver;">Silver</option>
<option style="color: teal;">Teal</option>
<option style="color: yellow;">Yellow</option>
</select>
<select id="player7ai" title="Choose whether this player is controled by a human or by the computer." onclick="document.getElementById('player7name').disabled = this.value !== '0';">
<option value="0" selected="selected">Human</option>
<option value="1">AI (Test)</option>
</select>
</div>
<div id="player8input" class="player-input">
Player 8: <input type="text" id="player8name" title="Player name" maxlength="16" value="Player 8" />
<select id="player8color" title="Player color">
<option style="color: aqua;">Aqua</option>
<option style="color: black;">Black</option>
<option style="color: blue;">Blue</option>
<option style="color: fuchsia;">Fuchsia</option>
<option style="color: gray;">Gray</option>
<option style="color: green;">Green</option>
<option style="color: lime;">Lime</option>
<option style="color: maroon;">Maroon</option>
<option style="color: navy;">Navy</option>
<option style="color: olive;">Olive</option>
<option style="color: orange;">Orange</option>
<option selected="selected" style="color: purple;">Purple</option>
<option style="color: red;">Red</option>
<option style="color: silver;">Silver</option>
<option style="color: teal;">Teal</option>
<option style="color: yellow;">Yellow</option>
</select>
<select id="player8ai" title="Choose whether this player is controled by a human or by the computer." onclick="document.getElementById('player8name').disabled = this.value !== '0';">
<option value="0" selected="selected">Human</option>
<option value="1">AI (Test)</option>
</select>
</div>
<div style="margin: 20px 0px;">
<input type="button" value="Start Game" onclick="setup();" title="Begin playing." />
</div>
<div id="noF5">Note: Refreshing this page or navigating away from it may end your game without warning.</div>
</div>
<div id="control">
<table>
<tr>
<td style="text-align: left; vertical-align: top; border: none;">
<div id="menu">
<table id="menutable" cellspacing="0">
<tr>
<td class="menu-item" id="buy-menu-item">
<a href="javascript:void(0);" title="View alerts and buy the property you landed on.">Buy</a>
</td>
<td class="menu-item" id="manage-menu-item">
<a href="javascript:void(0);" title="View, mortgage, and improve your property. ">Manage</a>
</td>
<td class="menu-item" id="trade-menu-item">
<a href="javascript:void(0);" title="Exchange property with other players.">Trade</a>
</td>
</tr>
</table>
</div>
<div id="buy">
<div id="alert"></div>
<div id="landed"></div>
</div>
<div id="manage">
<div id="option">
<div id="buildings" title="Available buildings"></div>
<input type="button" value="Buy house" id="buyhousebutton"/>
<input type="button" value="Mortgage" id="mortgagebutton" />
<input type="button" value="Sell house" id="sellhousebutton"/>
</div>
<div id="owned"></div>
</div>
</td>
<td style="vertical-align: top; border: none;">
<div id="quickstats" style="">
<div><span id="pname" >Player 1</span>:</div>
<div><span id="pmoney">$1500</span></div>
</div>
<div>
<div id="die0" title="Die" class="die die-no-img"></div>
<div id="die1" title="Die" class="die die-no-img"></div>
</div>
</td>
</tr><tr>
<td colspan="2" style="border: none">
<div style="padding-top: 8px;">
<input type="button" id="nextbutton" title="Roll the dice and move your token accordingly." value="Roll Dice"/>
<input type="button" id="resignbutton" title="If you cannot pay your debt then you must resign from the game." value="Resign" onclick="game.resign();" />
</div>
</td>
</tr>
</table>
</div>
<div id="trade">
<table style="border-spacing: 3px;">
<tr>
<td class="trade-cell">
<div id="trade-leftp-name"></div>
</td>
<td class="trade-cell">
<div id="trade-rightp-name"></div>
</td>
</tr>
<tr>
<td class="trade-cell">
$ <input id="trade-leftp-money" value="0" title="Enter amount to exchange with the other player." />
</td>
<td class="trade-cell">
$ <input id="trade-rightp-money" value="0" title="Enter amount to exchange with the other player." />
</td>
</tr>
<tr>
<td id="trade-leftp-property" class="trade-cell"></td>
<td id="trade-rightp-property" class="trade-cell"></td>
</tr>
<tr>
<td colspan="2" class="trade-cell">
<input type="button" id="proposetradebutton" value="Propose Trade" onclick="game.proposeTrade();" title="Exchange the money and properties that are checked above." />
<input type="button" id="canceltradebutton" value="Cancel Trade" onclick='game.cancelTrade();' title="Cancel the trade." />
<input type="button" id="accepttradebutton" value="Accept Trade" onclick="game.acceptTrade();" title="Accept the proposed trade." />
<input type="button" id="rejecttradebutton" value="Reject Trade" onclick='game.cancelTrade();' title="Reject the proposed trade." />
</td>
</tr>
</table>
</div>
</body>
</html>