Hallelujah...I have finally found the problem. Basically, it was a little piece of HTML that was missing from the script, just " .
Who would have thought that something so small could affect the total outcome.
Thanks again for your help Danno and all.
