<!--

function paintTable() {

	var content = document.getElementById('textArea');
	var tables = content.getElementsByTagName('table');

	for (var a = 0, b = tables.length; a < b; a++) {

		if (tables[a].getAttribute('paint') == 1) {

			for (var c = 2, d = tables[0].rows.length; c < d; c++) {

				for (var e = 0, f = tables[0].rows[c].cells.length; e < f; e++) {

					tables[0].rows[c].cells[e].className = (c % 2) ? '' : 'td1';

				}

			}

		}

	}

}

paintTable();

//-->
