// JavaScript Document
	function ec(ref){
		if(ref.className == 'tMin'){
			ref.className = 'tPlus';
			ref.nextSibling.nextSibling.style.display = '';
		}else{
			ref.className = 'tMin';
			ref.nextSibling.nextSibling.style.display = 'none';
		}
	}
	
  function ow(url,s,r,w,h,t,l){
		ft = "scrollbars="+s+",resizable="+r+",width="+w+"px,height="+h+"px,top="+t+"px,left="+l+"px";
		window.open(url,"selectmenu", ft);
	}
	function navigate(month,year) {
			var url = "./inc/calendar.php?month="+month+"&year="+year;
			if(window.XMLHttpRequest) {
					req = new XMLHttpRequest();
			} else if(window.ActiveXObject) {
					req = new ActiveXObject("Microsoft.XMLHTTP");
			}
			req.open("GET", url, true);
			req.onreadystatechange = callback;
			req.send(null);
	}	
	function callback() {
			if(req.readyState == 4) {
					if(req.status == 200) {
							response = req.responseText;
							document.getElementById("calendar").innerHTML = response;
					} else {
							alert("There was a problem retrieving the data:\n" + req.statusText);
					}
			}
	}
	function sh(objName){
		var z = document.getElementById(objName);
		if (z.style.display == "none") {
			if(document.getElementById(currentLI)){
				document.getElementById(currentLI).style.display = "none"
			}
			z.style.display = "";
			currentLI = objName;
		}else{
			z.style.display = "none";
			currentLI = "";
		}
	}