values and ids split
Alphabetical function corrected
error checks on invalid values
hidden input added and js amended for onchange
comments removed and functions tidied up
Merge pull request #3 from trigger121/symphony-way

Cleaned up merge for testing