function SwitchTab (act, tot) {
	if (act >= 1) {
		if (tot >= 1) {
			for (i=1; i<=tot; i++) {
				if (i == act) {
					document.getElementById('tab_'+ i ).className = "ContainerMenu__itemA";
					document.getElementById('Window_' + i).style.display = "block";
				} else {
					document.getElementById('tab_'+ i ).className = "ContainerMenu__itemI";
					document.getElementById('Window_' + i).style.display = "none";
				};
			}
		} else {
			window.alert("Error in function 'SwitchTab()': Parameter 'tot' is less than 1.");
		};
	} else {
		window.alert("Error in function 'SwitchTab()': Parameter 'act' is less than 1.");
	};
};
function SwitchSubTab (act, tot) {
	if (act >= 1) {
		if (tot >= 1) {
			for (i=1; i<=tot; i++) {
				if (i == act) {
					document.getElementById('subtab_'+ i ).className = "SubmenuA";
					document.getElementById('subWindow_' + i).style.display = "block";
				} else {
					document.getElementById('subtab_'+ i ).className = "SubmenuI";
					document.getElementById('subWindow_' + i).style.display = "none";
				};
			}
		} else {
			window.alert("Error in function 'SwitchSubTabs()': Parameter 'tot' is less than 1.");
		};
	} else {
		window.alert("Error in function 'SwitchSubTabs()': Parameter 'act' is less than 1.");
	};
}