Thanks Ivan, I thought that it would have to do with something in the JavaScript that is being included. I will be looking at changing it to try and resolve the problem, but this is what is on the templates pages that may be causing the error. You may have come across something like this before?
Thanks for the time you've spent trying to help me resolve the problem.
Ravi