function calendarJumpMonth(obj) {
	var val = obj.options[obj.selectedIndex].value;
	var cYear = val.split(",")[0];
	var cMonth = val.split(",")[1];
	document.location = thisPageUrl + "recYear="+escape(cYear)+"&recMonth="+escape(cMonth)+"&recFilter="+escape(cFilter);
}

function refreshEventTypes() {
	var objs = document.getElementsByTagName("INPUT");
	var selectedList = "";
	for(i=0;i<objs.length;i++) {
		if(objs[i].name=="eventType" && objs[i].type=="checkbox" && objs[i].checked) {
			selectedList+=objs[i].value + ",";
		}
	}
	selectedList = selectedList.substr(0,selectedList.length-1);
	if(selectedList.length==0) {
		alert("Please choose at least one event type");
	} else {
		if(cDay==0) {
			document.location = thisPageUrl + "recYear="+escape(cYear)+"&recMonth="+escape(cMonth)+"&recFilter="+escape(selectedList);
		} else {
			document.location = thisPageUrl + "recYear="+escape(cYear)+"&recMonth="+escape(cMonth)+"&recDay="+escape(cDay)+"&recFilter="+escape(selectedList);
		}
	}
}

function refreshYearEventTypes() {
	var objs = document.getElementsByTagName("INPUT");
	var selectedList = "";
	for(i=0;i<objs.length;i++) {
		if(objs[i].name=="eventType" && objs[i].type=="checkbox" && objs[i].checked) {
			selectedList+=objs[i].value + ",";
		}
	}
	selectedList = selectedList.substr(0,selectedList.length-1);
	if(selectedList.length==0) {
		alert("Please choose at least one event type");
	} else {
		document.location = thisPageUrl + "recYear="+escape(cYear)+"&recFilter="+escape(selectedList)+"&recMode=year";
	}
}
