Have the right number of days selectable.

The days box would always go up to 31 days, even if the month didn't
have that many. This can be confusing, so I added a function that checks
how many days <option>s there are and adds or removes <option>s appropriately