$(function() {
    function stripeTable(table) {
        // the flag we'll use to keep track of
        // whether the current row is odd or even
        var even = false;

        // by definition, tables can have more than one tbody
        // element, so we'll have to get the list of child
        // <tbody>
        var tbodies = table.getElementsByTagName("tbody");

        // and iterate through them...
        for (var h = 0; h < tbodies.length; h++) {

            // find all the <tr> elements...
            var trs = tbodies[h].getElementsByTagName("tr");

            // ... and iterate through them
            for (var i = 0; i < trs.length; i++) {
                if (!even) {
                    trs[i].className = "odd";
                }

                // flip from odd to even, or vice-versa
                even = ! even;
            }
        }
    }
    
    $('.Table1').each(function() {
        stripeTable(this);
    });
});
