function getById(id){
	return document.getElementById?document.getElementById(id):(document.all?document.all(id):null);}

function setBackColor(obj, color) {
	getById(obj).style.background=color;
}
function setTxtColor(obj, color) {
	getById(obj).style.color=color;
}
function showDiv(obj) {
	if (getById(obj).style.display=='block') {
		getById(obj).style.display='none';
	} else {
		getById(obj).style.display='block';
	}
}
		
function swapCheck(id) {
	if (getById(id).checked) {
		getById(id).checked='false';
	} else {
		getById(id).checked;
	}
}

function setHiddenValue(obj, val) {
	getById(obj).value = val;	
}

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;
}
function goTo(url) {
	document.location = url;	
	
}