Theme Park password generator

Here's some javascript for making passwords for Bullfrog's Theme Park for the Sega Mega Drive.

A bit of background: I played it recently, first time in 12 or so years. When I sold my first park, the password was full of As. The next password was also full of As, but slightly different. "Bitfields", I thought. And some hours later, here we are.

The passwords consist of eleven characters, from a set of 32 letters and numbers. The first is the check byte, the seven next are location bit flags (full of As early on), and the last four are the money (in thousands). The check byte turned out to simply be the sum of the other bytes mod 32.

Desired amount of money:


Countries owned by other players:

Note: With no checked countries here, half the money will be a bank loan.
Alaska
Antarctica
Argentina
Australia
Brazil
Californa
China
Eastern USA
Egypt
Europe
Greenland
Iceland
India
Japan
Kuwait
New Zealand
Nigeria
Northern USA
Peru
Russia
Scandinavia
South Africa
UK
Yakutsk
(nothing)


This is the password:
If I messed up the script, here's a billion dollar refund: CAAACAA8SUA