var TableRowAlternator = {
	transformAll : function() {
		$$('table tr').forEach(function(row,rowIndex) {
			if (!(rowIndex%2)) {
				row.getChildren().forEach(function(cell,cellIndex) {
					cell.addClass('alt');
				});
			}
		});
	},
	transform : function(table,columns) {
		table.getChildren()[0].getChildren().forEach(function(row,rowIndex) {
			if (!columns) {
				if (!(rowIndex%2)) {
					row.getChildren().forEach(function(cell,cellIndex) {
						cell.addClass('alt');
					});
				}
			}else {
				if (!(rowIndex%2)) {
					columns.forEach(function(colNo,columnIndex) {
						row.getChildren()[colNo].addClass('alt');
					});
				}
			}
		});
	}
};