The two major errors i get (when not using comments) are of the form "doc type doesnt allow div here..." and/or "having an illegal character in a script section 'i.e. <' ". I have tried following the advise it offers but this doesnt solve the problem. For instance it recommends escaping the less than sign which is used as an operator and as such breaks the code.
Please see page: http://nuweb.northumbria.ac.uk/fashion/golfbook/nationalscore.php
Validation result (http://validator.w3.org/check?uri=http%3A%2F%2Fnuweb.northumbria.ac.uk%2Ffashion%2Fgolfbook%2Fnationalscore.php&charset=%28detect+automatically%29&doctype=Inline&group=0&user-agent=W3C_Validator%2F1.767
var ar1 = new Array();