This is the great solution you have provided. i appreciate you for this help. i have some doubts in other code. but i am trying to solve myself. If i could not solve it then i will post my code.