output not XHTML 1.0 valid! w3 validator say's "48 Errors, 1 warning(s)"...

i made some changes at line 146 and 147, so that there are no missing closing tags in the output.
now the output is XHTML 1.0 valid