function getById(id){
	return document.getElementById?document.getElementById(id):(document.all?document.all(id):null);}
	
function showDetail(id) {
	if (getById(id).style.display=='block') {
		getById(id).style.display='none';
	} else {
		getById(id).style.display='block';
	}
}	
	
function swapCheck(id) {
	if (getById(id).checked) {
		getById(id).checked='false';
	} else {
		getById(id).checked;
	}
}
	
function setPointer(theRow, thePointerColor)
{
	if (typeof(theRow.style) == 'undefined' || typeof(theRow.cells) == 'undefined') 
		return false;

	var row_cells_cnt = theRow.cells.length;
	for (var c = 0; c < row_cells_cnt; c++) 
		theRow.cells[c].bgColor = thePointerColor;

	return true;
}
