
    function updateday(form) {
		amount = form.from_day.selectedIndex

		if (amount == 30){
			amount = amount - 1
		}

		form.end_day.options[amount+1].selected=1


	     }

	     function updatemonth(form) {

		amount = form.from_month.selectedIndex
		form.end_month.options[amount].selected=1

	     }

	     function updateyear(form) {
		amount = form.from_year.selectedIndex
		form.end_year.options[amount].selected=1

	     }
