hell-o
lets clean this up before we attempt to troubleshoot the table structure. go here and read up a little on how to administer the contents that belong in the head tag and the body tag for the dynamically generated pages...:
http://www.agoraguide.com/faq/viewtopic.php?t=358
once the css and the js that belongs in the head tag is there then remove the redundant html body and head tags and the css and js from the header.inc (just the stuff that belongs in the head tag, ofcourse).
the store header doesn't need the <html><title><head><body> tags. include everything you need directly following but not including the body tag for the store_header.inc file.
the store footer.inc file doesn't need the </body></html>. however, and i haven't investigated this yet, but i have noticed that the viewcart page is lacking the </body></html> tags in at least some stores (4.0k-b). so if your store footer.inc doesn't contain the end body and end html tags
and your viewcart page is missing them then go ahead and add the tags to the footer.inc. the worse that can happen is double set of tags for the productpages which wont hurt anything but you must have them in place for the viewcart page.
regards,
dan