Thanks mate,

I really appreciate you taking the time to help me with this. I'll compile the code you gave me and play around with it. So many different ways to do things with programming, as a beginner it's hard to find the best way to do something.