Hey HopefulGuy,
Could I, very politely, ask for you to use the code tags when putting code examples here?
Apart from the syntax highlighting, if and when you publish a bigger example, it will create a scrollable box that will be easier for anyone looking at your code AND your message at the same time.
Thank you very much in advance.
Cheers,
Gus