Firstly, think of how you would want to do it, write it down.
Work out some code that looks like it should do what you wanted.
try it, what does it do?
if it doesnt work, post it, explain what you're getting you didnt expect, and ask for assistance.
Dont post just asking for us to do it for you
Reputation Points: 196
Solved Threads: 190
Posting Virtuoso
Offline 1,735 posts
since Aug 2008