Getting frozen, or fixed, header and footer rows in a table is a
frustrating exercise, especially if you need to support Internet
Explorer 7. In searching for solutions to what you would think would
be a common problem, I discovered two plug-ins for jQuery that ease
the pain of displaying tables with such features:
Trim whitespace from a string in Javascript:
String.prototype.trim = function() { return this.replace(/^\s*/, "").replace(/\s*$/, ""); }