That is essentially what I did... A little less code however. It's simple and works nicely.

Thanks for all the replies.