		function activate_cal_table($obj){
			if ($calendar_table_parsed == 1) return;
			$calendar_table_parsed = 1;
			$cal_cells = $obj.getElementsByTagName("td");
			$counter = $cal_cells.length;
			for ($x=0;$x < $counter;$x++){
				if (!$cal_cells[$x]) continue;
				if ($cal_cells[$x].className == "week"){
					$cal_cells[$x].onclick  = c_activate_week;
					$cal_cells[$x].onmouseover  = c_over_week;
					$cal_cells[$x].onmouseout  = c_out_week;
				} else {
					$cal_cells[$x].style.cursor = "default";
					$cal_cells[$x].onmouseover  = c_over_day;
					$cal_cells[$x].onmouseout  = c_out_day;
					$cal_cells[$x].onclick  = c_set_day;
				}
			}
		}

		function c_activate_week(){
		}

		function c_over_week(){
			$td = this.parentNode.firstChild;
			while ($td){
				$td.style.backgroundColor = "#ffeac4"
				$td = $td.nextSibling;
			}
		}
		function c_out_week(){
			$td = this.parentNode.firstChild;
			while ($td){
				$td.style.backgroundColor = ""
				$td = $td.nextSibling;
			}
		}
		function c_over_day(){
			this.style.backgroundColor = "blue"
			this.style.color = "#ffffff"
		}
		function c_out_day(){
			this.style.backgroundColor = ""
			this.style.color = ""
		}

		function udate_calendar(){
			$month = document.getElementById("cal_month");
			$month = $month.options[$month.selectedIndex].value;
			$year = document.getElementById("cal_year");
			$year = $year.options[$year.selectedIndex].value;
			rpc_get_file($RPC_FILE+$RPC_PREFIX+"month="+$month+"&year="+$year,"calendar_container","0");
		}

		function c_set_day(){
			$day = this.getAttribute("id");
			window.document.location.href = $LINK+"&c_date="+$day + $ADD_TO_LINK;
		}
