Get dollars and cents from input amount.

I seem to have re-invented form input validation and I fear it is quite
fragile.