function $(elem)
{
	return document.getElementById(elem);
}

function go(loc)
{
	document.location.href = loc;
}

function goHide(obj)
{
	obj.style.display = 'none';
}

function goFocus(obj)
{
	obj.focus();
}

function goShow(obj)
{
	obj.style.display = 'block';
}

function goDisable(obj)
{
	obj.disabled = true;
}

function goEnable(obj)
{
	obj.disabled = false;
}

function goClearField(obj, text)
{
	if (obj.value == text) obj.value = '';
}

function goFillField(obj, text)
{
	if (obj.value == '') obj.value = text;
}

function goPopup(where)
{
	window.open(where);
}

function goPopupMinimal(loc)
{
	var leftVal = (screen.width / 2) - (400/2);
	var topVal = (screen.height / 2) - (500/2);
	window.open (loc, 'new_window', 'left=' +leftVal+ ',top=' + topVal + ',toolbar=no,width=400,height=500,status=no,resizable=yes,menubar=no,location=no,scrollbars=yes');
}

function expandText(theLink)
{
	tbody = theLink.parentNode;
	contentRow = tbody.getElementsByTagName('tr')[1];
	if (contentRow.className == 'hideRow') {
		contentRow.className = '';
	} else {
		contentRow.className = 'hideRow';
	}
}