If you want to add more functionality I'd suggest starting a new thread. If understanding the request in that new thread would require knowledge of this one, please insert a link stating so.

Glad it's now working for you.