var TB_reload = '';

function setCellColor(row, color)
{
	if (color == '' || typeof(row.style) == 'undefined') {
		return false;
	}
	if (typeof(document.getElementsByTagName) != 'undefined') {
		var cells = row.getElementsByTagName('td');
	} else if (typeof(row.cells) != 'undefined') {
		var cells = row.cells;
	} else {
		return false;
	}
	var cellCnt  = cells.length;
	for (var c = 0; c < cellCnt; c++) {
		cells[c].style.backgroundColor = color;
	}
	return true;
}

function setCellBorder(row, border, color)
{
	if (color == '' || typeof(row.style) == 'undefined') {
		return false;
	}
	if (typeof(document.getElementsByTagName) != 'undefined') {
		var cells = row.getElementsByTagName('td');
	} else if (typeof(row.cells) != 'undefined') {
		var cells = row.cells;
	} else {
		return false;
	}
	var cellCnt  = cells.length;
	for (var c = 0; c < cellCnt; c++) {
		cells[c].style.borderBottom=border+'px solid #'+color;
	}
	return true;
}

function music_play(sound) {
	parent.___.location.href='/sounds/?sound='+sound;
}

