Thanks for the reply .......I have dont the same in Javascript but when comes to C++ im not knowing how to code in such a manner to make it useful for me.....So i thought u can guide me through that way.......Thanks in Advance......