Sal
Are you hand coding all of this or are you using a package like Macromedia Dreamweaver to help you out? High end packages like this do the hard work for you.
What format is the text file in – I didn’t see an attachment? It is probably easiest to set up the read from an XML file with code such as this at xmlfiles.com