<!--
var numTabs = 3;

function focusTab(idNum)
{
	var tabId = 'tab' + idNum;
	var conId = 'content' + idNum;

	var tabEle = (document.getElementById)? document.getElementById(tabId): (document.all)? document.all[tabId]: null;
	var conEle = (document.getElementById)? document.getElementById(conId): (document.all)? document.all[conId]: null;

	chClss(tabId, 'tab' + idNum + '-focus');
	chClss(conId, 'content' + idNum + '-focus');

	var xcoord = 0;
	var ycoord = 0;

	if (document.getElementById) {
		var row = document.getElementById('TabTable').rows[0];
		while (row) {
			xcoord += row.offsetLeft;
			ycoord += row.offsetTop;
			row = row.offsetParent;
		}
		conEle.style.left = xcoord + 'px';
		conEle.style.top = ycoord + 'px';

		conEle.style.visibility = 'visible';
	}
	else if (document.all) {
		var row = TabTable.rows[0];
		while (row) {
			xcoord += row.offsetLeft;
			ycoord += row.offsetTop;
			row = row.offsetParent;
		}
		conEle.style.pixelLeft = xcoord;
		conEle.style.pixelTop = ycoord;

		conEle.style.visibility = 'visible';
	}
	else if (document.layers) {
		if(idNum == 1) {
			document.content1.left = document.anchors.placeHolder.x;
			document.content1.top = document.anchors.placeHolder.y;
			document.content1.visibility = 'show';
		}
		else if (idNum == 2) {
			document.content2.left = document.anchors.placeHolder.x;
			document.content2.top = document.anchors.placeHolder.y;
			document.content2.visibility = 'show';
		}
		else if (idNum == 3) {
			document.content3.left = document.anchors.placeHolder.x;
			document.content3.top = document.anchors.placeHolder.y;
			document.content3.visibility = 'show';
		}
	}

	for (var i = 1; i <= numTabs; i++)
	{
		if (i != idNum)
		{
			chClss('tab' + i, 'tab' + i);
			chClss('content' + i, 'content' + i);

			tabEle = (document.getElementById)? document.getElementById('tab' + i): (document.all)? document.all['tab' + i]: null;
			conEle = (document.getElementById)? document.getElementById('content' + i): (document.all)? document.all['content' + i]: null;

			tabEle.style.zIndex = 2;
			conEle.style.zIndex = 1;

			conEle.style.visibility = 'hidden';
		}
	}

}

function chClss(eleId, newClass)
{
	var theEle = (document.getElementById)? document.getElementById(eleId): (document.all)? document.all[eleId]: null;
	if (!theEle || typeof(theEle.className) == 'undefined') return false;
	theEle.className = newClass;
	return true;
}
//-->
