function toggleList() {
	// BtnCount is a variable that gets incremented by the DrawFieldBtn function
	// This will tell us how many buttons have been set to visible in the admin module
			if (document.getElementById) {
				childNode = document.getElementById("calendar");
			} else if (document.all) {
				childNode = document.all["calendar"];
			} else {
				// any other browsers - just do nothing
				// In these browsers the outline will be expanded by default
				return;
			}
				// Toggle the class between 'ExpandedButton' and 'CollapsedButton'
			if (childNode.className == "hide") {
				childNode.className = "show";
			} else {
				childNode.className = "hide";
			}
		}

		function toggleAll() {
			for (i=1; i<=parentItems; i++) {
				toggleList(i);
			}
		}
		function dateSelected(dayValue, monthValue, yearValue){
			dateNow = new Date();
		//	alert("dateNow : " + dateNow);
			day   = dateNow.getDate();
			month = dateNow.getMonth();
			year  = dateNow.getFullYear();
		//	alert("dayValue : " + dayValue);
		//	alert("day : " + day);
		//	alert("monthValue : " + monthValue);
		//	alert("month : " + month);
		//	alert("yearValue : " + yearValue);
		//	alert("year : " + year);
								if (yearValue > year){				alert("Posted date must not be greater than today's date");			}else if (monthValue > month +1 && yearValue == year){				alert("Posted date must not be greater than today's date");			}else if (dayValue > day && monthValue >= month +1 && yearValue >= year){				alert("Posted date must not be greater than today's date");			}else{
				dateField = document.getElementById('selectedDate');				dateField.value = dayValue + "/" + monthValue + "/" + yearValue;
		//		alert(dateField.value);			}
		}

/*				
sfHover = function() {
		var sfEls = document.getElementById("nav").getElementsByTagName("LI");
		for (var i=0; i<sfEls.length; i++) {
			sfEls[i].onmouseover=function() {
				this.className+=" sfhover";
			}
			sfEls[i].onmouseout=function() {
				this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
			}
		}
	}
if (window.attachEvent) window.attachEvent("onload", sfHover);
*/

