Hi Scott and Aderson,
I just tried copying the script from my live site to the locally hosted site.
It works fine, can only assume it got corrupted (a careless key press from me perhaps)
Anyway, it's working now, thank you both for your replies.
Steve