sub cat admin done.

When subcats change, function uses selectedIndex to preserve previous
choices.