Thank you. That worked but I now have page, page, page, page in the top right left hand corner of the page i.e. it's not formatted or anything. I've tried to hide it using <!-- --!> as suggested by a friend but that then seems to nullify the use of the html links i.e. it doesn;t get picked up by the generator! Anyway I can continue with the javascript links (as I can't easily replicate them in html) and have the html links in the background so that they can be seen by the sitemap generator, google etc but not by a user viewing the page?
Appreciate all your help here.
Many thanks.