function addLoadEvent(func) {
	var oldonload = window.onload;
	if (typeof window.onload != 'function') {
		window.onload = func;
	} else {
		window.onload = function() {
			oldonload();
			func();
		};
	}
}
function tablestyling() {
	var tables;
	var cDivs = document.getElementById("content").getElementsByTagName("div");
	tables = cDivs[ 0 ].getElementsByTagName("table");
	if (tables && tables.length > 0) {
		for (var i = 0; i < tables.length; i++) {
			if (tables[ i ].border == "1" && !tables[ i ].className) tables[ i ].className ="tb";
		}
	}
}
addLoadEvent(tablestyling);