AAAAGGGGHHHHHHH!!!!!!!

Found it

I added the debug code, commented out the 2 calls that didn't work and got an odd error further down. Sure enough it was the missing quote (much kudos to Allen for the original insight and apronk for correcting the line of code, guess I should have copied it into my code.) Added it in and it all works nicely

Thanks for the help chaps, any time I can return the favour...
_________________________
Every day is a school day