function showLayer(layerName, displayType)
{
	if (document.getElementById) // Netscape 6 and IE 5+
	{
		var targetElement = document.getElementById(layerName);
		targetElement.style.display = ((null == displayType) ? 'block' : displayType);
	}
}


function hideLayer(layerName)
{
	if (document.getElementById) 
	{
		var targetElement = document.getElementById(layerName);
		targetElement.style.display = 'none';
	}
}



function cInt(elm) {
	var newElm = '';
	elm += '';
	for (x = 0; x < elm.length; x++) {
		if (isInt(elm.charAt(x)) || '.' == elm.charAt(x)) newElm += elm.charAt(x);
	}
	newElm *= 1;
	newElm = Math.round(newElm);
	return newElm;
}

function cNum(elm) {
	var newElm = '';
	elm += '';
	for (x = 0; x < elm.length; x++) {
		if (isInt(elm.charAt(x)) || '.' == elm.charAt(x)) newElm += elm.charAt(x);
	}
	newElm *= 1;
	return newElm;
}

// Test that a string is made up of integers...
function isInt(elm) {
	if (elm == '' || elm == null) return false;
	for (i = 0; i < elm.length; i++) {
		if (elm.charAt(i) < '0' || elm.charAt(i) > '9') return false;
	}
	return true;
}


