// add new widget called repeatHeaders
$.tablesorter.addWidget({
    id: "repeatHeaders",
    format: function(table) {
        $(".row", table).removeClass();
        $(".altrow", table).removeClass();
        var c=0;
		$("tr", table).each(function(){
			c++;
			if (c == 1) $(this).addClass('row');
			if (c == 2) {
				$(this).addClass('altrow');
				c = 0;
			}
		});

	//	$("#tableheader", table).removeClass();
	//	$("#tableheader", table).addClass('form_header');
    }
});

$.tablesorter.addParser({
	id:"integer",
	is:function(s,table){
		var c=table.config;
		return $.tablesorter.isDigit(s,c);
	},
	format:function(s){
	s=s.replace(',','');
	return s.match(/[0-9]+/);
}, type:"numeric"});


$.tablesorter.addParser({
	id:"link",
	is:function(s,table){
		var c=table.config;
		return $.tablesorter.isDigit(s,c);
	},
	format:function(s){
	s = s.toLowerCase();
	return s.match('>(.*)<');
}, type:"text"});