	function getNextMonth(printValue) 
	{
		document.__aspnetForm.Month.value = document.__aspnetForm.nextMonth.value;
		document.__aspnetForm.Year.value = document.__aspnetForm.nextYear.value;
		
		//See if the user selected some calendars
		if (document.__aspnetForm.printFlag.value == 0) {
		getCalSet();		
		}	
		
		//if this is a printpage then we have to set it
		document.__aspnetForm.printFlag.value = printValue;
	}
	
	function getLastMonth(printValue) 
	{
		document.__aspnetForm.Month.value = document.__aspnetForm.lastMonth.value;
		document.__aspnetForm.Year.value = document.__aspnetForm.lastYear.value;
		
		//See if the user selected some calendars
		if (document.__aspnetForm.printFlag.value == 0) {
		getCalSet();
		}	
		
		//if this is a printpage then we have to set it
		document.__aspnetForm.printFlag.value = printValue;
	}

	function getCalSet()
	{
		var mySelect = document.__aspnetForm.calSelect;
		var count = mySelect.options.length;
		var calTemp = ""
		
		for (var i=0; i<count; i++)
		{
			//alert("Selected=" + mySelect.options[i].selected + "  Value=" + mySelect.options[i].value);
			if (mySelect.options[i].selected) {
				if (calTemp == "") {
					calTemp = String(mySelect.options[i].value)}
				else {
					calTemp += "," + String(mySelect.options[i].value)}
			}
		}
		//alert(calTemp);
		if (calTemp > "") {
			document.__aspnetForm.calSet.value = calTemp }
	}
	function submitPrintForm ()
	{
		//netscape can't read script off of an image input submit, so we go to all this trouble
		document.__aspnetForm.printFlag.value = 1;
		document.__aspnetForm.submit();

		//return false is part of an elaborate trick necessary to solve a Netscape Image submit problem			
		return false;
	}
