// Tabs
		var tab = null;
		var maxTabs = 2;
		var curTab = 0;
		var cursorDefault= "default"
		var cursorCurr = "text"
		var clrTabBg = "#F0F0F0";
		var clrTabLite = "#FF0000";
		var clrTabLiteBg = "#FFFFCC";
		var clrTabCurr = "Red";
		var clrTabCurrBg = "White";
		var tabs = [0,1,2,3,4,5,6,7,8,9]
        var tabCode = new Array(7)
        tabCode[0]="0"
	    tabCode[1]="1"
    	tabCode[2]="2"
	    tabCode[3]="3"
    	tabCode[4]="4"
	    tabCode[5]="5"
    	tabCode[6]="6"
    	tabCode[7]="7"
		function showTab(tabNo) {
			highlightTab(tabNo);
	  		drawCal(date, dir, pd, tabCode[tabNo]);
//			getEvents(calStart, calEnd, calDept);
		}
		function highlightTab(tabNo) {
			for (i=0; i<maxTabs; i++) {
				document.getElementById('tab'+tabs[i]).style.backgroundColor = "" ;
				document.getElementById('tab'+tabs[i]).style.cursor = cursorDefault ;
				document.getElementById('tab'+tabs[i]).style.borderBottom = "1px solid black";
				document.getElementById('tab'+tabs[i]).style.color = "" ;
			}
			document.getElementById('tab'+tabs[tabNo]).style.backgroundColor = clrTabCurrBg ;
			document.getElementById('tab'+tabs[tabNo]).style.color = clrTabCurr ;
			document.getElementById('tab'+tabs[tabNo]).style.cursor = cursorCurr ;
			document.getElementById('tab'+tabs[tabNo]).style.borderBottom = "1px solid "+clrTabCurrBg ;
			curTab = tabNo;
		}
		function liteTab(tabNo) {
			if (tabNo != curTab) {
				document.getElementById('tab'+tabs[tabNo]).style.backgroundColor = clrTabLiteBg ;
				document.getElementById('tab'+tabs[tabNo]).style.color = clrTabLite ;
			}
		}
		function darkTab(tabNo) {
			if (tabNo != curTab) {
				document.getElementById('tab'+tabs[tabNo]).style.backgroundColor = "";
				document.getElementById('tab'+tabs[tabNo]).style.color = "";
			}
		}
		function initTab(tabNo) {
			if (tabNo < 0 || tabNo > maxTabs) {
				tabNo = 0
			}
			highlightTab(tabNo) ;
		}

