Have you tried running it through tidy , then seeing if you like the look of the code? --Alexander