It would have been helpful if you specified all of your requirements up front. I'm really not interested in being fed a problem in piecemeal fashion. I imagine the other contributors here have much the same attitude. Indeed, instead of hijacking an existing thread, you should start a new thread. Please do so - with the full specifications of your requirements, including whatever code you are now using and details of what aspects you're having trouble with.