function gotomo() {
	location.href = document.selmo.theselmo.value
}

function gotoyr() {
	location.href = document.selyr.theselyr.value
}

function goToFilter() {
	location.href = document.selFilter.filter.value;
}

function goToDay(loc) {
	location.href = loc;
}

function changeCal(loc) {
	location.href = loc;
}

function toggleDisplay(theID) {
	var theElement = document.getElementById(theID);
	if (theElement.className == 'appointmentDetails'){
		theElement.className = 'appointmentDetailsShow'
	}
	else { 
 		theElement.className = 'appointmentDetails'
	}
}

function handleClears(cValue,filterAll,checked) {
	var fb = document.filterBy.filterBy;
	var cLen = document.filterBy.checks.length - 1;
	if (cValue == filterAll && checked){
		fb.value = filterAll;
	}
	else {
		cnt = 0;
		val = '';
		for (x = 0; x < cLen; x++){
			if (document.filterBy.checks[x].checked) {
				if (cnt > 0) {
					document.filterBy.filterBy.value += ','+document.filterBy.checks[x].value; 
				}
				else {
					document.filterBy.filterBy.value = document.filterBy.checks[x].value;
				}
				cnt++;
			}
		}
	}
	
	document.filterBy.submit();
}