Sorry Friends you are right that i have to write code my own and i did that also but some how that code is not working according to my expectation and very long so instead of post all code i just asking for links. I just want to compare my code with others and like to check that i am going proper or not.