var activeTab;
var activeSheet;
function setActiveTab(name){
	tabHidden = document.getElementById('idActiveTabHidden');
	initTab = document.getElementById('idTab' + initTabName);
	initSheet = document.getElementById('idTabSheet' + initTabName);
	if(initTab){
		activeTab = initTab;
	}
	if(initSheet){
		activeSheet = initSheet;
	}
	tab = document.getElementById('idTab' + name);
	if(tab){
		if(activeTab){
			activeTab.className = 'tabUnactive';
		}
		tab.className = 'tabActive';
		activeTab = tab;
		if(tabHidden){
			tabHidden.value = activeTab.id;
		}
	}
	
	sheet = document.getElementById('idTabSheet' + name);
	if(sheet){
		if(activeSheet){
			activeSheet.className = 'sheetUnactive';
		}
		sheet.className = 'sheetActive';
		activeSheet = sheet;
	}
	initTabName = "";
}

function tr_on(_tr){
	_tr.style.backgroundColor  = "#ffEECC";
}
function tr_off(_tr){
	_tr.style.backgroundColor  = "white";
}
function tr_click(_tr, _url){
	//_tr.style.backgroundColor  = "#ACC3D2";
	document.location = _url;
}