It's not a problem with the files that I posted, it's a problem in the script / html that you are trying to use the table wrappers on. Somewhere in your file is a /td /tr and or /table where it's not suppose to be, so the closing table tags in the $tbclose variable are being ignored.
I had the same problem with the Priavay page I scripted recently. It turned out that I had some closing table tags in my privacy statement html that were causing the table wrappers to get cut off. If there is an error that effects the html in $tbclose you'll see it as missing graphics on the right side, bottom corners, and bottom of the table that's suppose to have the graphic wrapper around it.
In short: If you're not going to post your script so I (or someone else) can review it for you then you're gonna have to debug it yourself. I can't help you if you are only going to make half a post and then claim that the error is in my script...
P.S. It's working on my site, and many others...