/* tab switching via on-page src */
function doTab(ix, hdrName, cntName) {
	ix = ix-1;
	if (ix < 0) ix = 0;
	
	var tabHeader = document.getElementById(hdrName);
	var tabContent = document.getElementById(cntName);
	
	var onTab = 0;
	for (var i=0; i<tabHeader.childNodes.length; i++) {
		//alert(tabHeader.childNodes[i].tagName);
		if (!tabHeader.childNodes[i].tagName || !tabContent.childNodes[i])
			continue;
		
		if (onTab == ix) {
			tabHeader.childNodes[i].className = "active";
			tabContent.childNodes[i].className = "tabSrc";
		} else {
			tabHeader.childNodes[i].className = "";
			tabContent.childNodes[i].className = "tabSrc hidden";
		}
		onTab++;
	}
}	
