hey Thanks for the code.It is really helpful. I was having difficulty in the code. but now it all worked out.