in reply to Please help
Thanks guys, I knew it was something stupid I just couldn't find it! Again, thanks for all your help and quick responses.
I know that it's often helpful to get another set of eyes to look over your code but if you don't already, consider using an editor which supports Syntax highlighting.