Thanks jonesy44 :)
I've been having a little trouble copying and pasting to the code box here. When I first pasted it, the scroll bar didn't appear and only half the script showed. Then I marked the whole thing and pasted again and it looked fine. The missing part of the first paste must have showed up later. Damn Vista ;/ I should pay closer attention.
Thanks for noticing :)