to your HTML
Add class="sortable" to any table you'd like to make sortable
Click on the headers to sort
Thanks to many, many people for contributions and suggestions.
Licenced as X11: http://www.kryogenix.org/code/browser/licence.html
This basically means: do what you want with it.
*/
var stIsIE = /*@cc_on!@*/false;
sorttable = {
init: function() {
// quit if this function has already been called
if (arguments.callee.done) return;
// flag this function so we don't do the same thing twice
arguments.callee.done = true;
// kill the timer
if (_timer) clearInterval(_timer);
if (!document.createElement || !document.getElementsByTagName) return;
sorttable.DATE_RE = /^(\d\d?)[\/\.-](\d\d?)[\/\.-]((\d\d)?\d\d)$/;
forEach(document.getElementsByTagName('table'), function(table) {
if (table.className.search(/\bsortable\b/) != -1) {
sorttable.makeSortable(table);
}
});
},
makeSortable: function(table) {
if (table.getElementsByTagName('thead').length == 0) {
// table doesn't have a tHead. Since it should have, create one and
// put the first table row in it.
the = document.createElement('thead');
the.appendChild(table.rows[0]);
table.insertBefore(the,table.firstChild);
}
// Safari doesn't support table.tHead, sigh
if (table.tHead == null) table.tHead = table.getElementsByTagName('thead')[0];
if (table.tHead.rows.length != 1) return; // can't cope with two header rows
// Sorttable v1 put rows with a class of "sortbottom" at the bottom (as
// "total" rows, for example). This is B&R, since what you're supposed
// to do is put them in a tfoot. So, if there are sortbottom rows,
// for backwards compatibility, move them to tfoot (creating it if needed).
sortbottomrows = [];
for (var i=0; i

Welcome to the May 26, 2007 Memorial Day Weekend edition of On the Moneyed Midways, the blogosphere's weekly review of the best posts from the best-hosted of the week's major business and money-related blog carnivals!

Each week, we seek out the best post from the hundreds contributed to the dozens of money-related blog carnivals, which we award the title of being The Best Post of the Week, Anywhere!(TM) For those that come close, but not quite, we award the title of being Absolutely essential reading!(TM)

We're beginning to see a pattern in which blog carnivals are most worth reading each week, which we'll feature in an upcoming special edition of OMM. In the meantime, the best posts of the week that was await you below....

Your lawyer may be shafting you. Charles H. Green comments upon a piece that appears in the Wall Street Journal's law blog that suggests the legal industry's billing practices are crossing into unethical territory (and that those in the legal profession don't seem to have a problem with that!) Absolutely essential reading!

The 4 P's (Product, Price, Place and Promotion) have long dominated the practice of marketing, but Matt McDonald notes the appearance of a new paradigm: The 4 C's (Create, Connect, Correct and Cancel). Absolutely essential reading!

Unhealthy worker lifestyles and aging baby boomers are combining to threaten trouble for U.S. employers. Julie Ferguson looks at the magnitude of the problem and at how companies are adapting to keep ahead of the curve.

The former police officer busts the commonly held myths about what motivates the police to write up so many traffic tickets and offers tips for staying on the right side of the law! Absolutely essential reading!

The Story Girl shares how she cut her grocery bill by taking advantage of free food offers - perhaps some grandstanding politicians seeking to make headlines by feeding themselves only off the supplemental portion of the food stamp program should take note!

Do doctors unfairly benefit from having early access to research data about new and upcoming drugs? Hisham Ayoub wonders if the release of these early results doesn't trip over insider trading regulations. Absolutely essential reading!

Richard Beddard reports on University of Durham's Keith Anderson's research into what might be described as the ultimate criteria in value investing: the "Naked PE Ratio!" Absolutely essential reading!

Causalien balances specialization and generalization in a wide ranging, yet short post that provides unexpected insights into the nature of innovation and the benefits of networking. We feel this is The Best Post of the Week, Anywhere!, but then again, we're partial to these topics, so we may be biased!

Welcome to the blogosphere's toolchest! Here, unlike other blogs dedicated to analyzing current events, we create easy-to-use, simple tools to do the math related to them so you can get in on the action too! If you would like to learn more about these tools, or if you would like to contribute ideas to develop for this blog, please e-mail us at:

Materials on this website are published by Political Calculations to provide visitors with free information and insights regarding the incentives created by the laws and policies described. However, this website is not designed for the purpose of providing legal, medical or financial advice to individuals. Visitors should not rely upon information on this website as a substitute for personal legal, medical or financial advice. While we make every effort to provide accurate website information, laws can change and inaccuracies happen despite our best efforts. If you have an individual problem, you should seek advice from a licensed professional in your state, i.e., by a competent authority with specialized knowledge who can apply it to the particular circumstances of your case.