$ 0 0 Awesome LucD The above given script is working perfect. The output is exact what i was looking.. Thanks a lot..