Thanks for your responses. Both of you have an idea of what I want to do and how to go about it. I will have to post a snippet of the problem at hand then so that you can help me better.