thanks it does set the headers pefectly thanks so much.
Only problem I have now is why is my final form has copies of the images stacked at the bottom just like before.
I am copying the body text/html content plus the body image/gif content to the new document by creating the respective headers etc. Now my final document has the correct body formatting but there are still images at the bottom. see the output of my attempt here [just take not of the images]:
http://www.cs.uct.ac.za/~jdembare/lotus/notes.html