function change_hotel_EndDate() {
    leisure_nd = new Date(
		document.search.f_nen1.options[document.search.f_nen1.options.selectedIndex].value, 
		document.search.f_tuki1.options[document.search.f_tuki1.options.selectedIndex].value, 
		document.search.f_hi1.options[document.search.f_hi1.options.selectedIndex].value
	);
	mm = leisure_nd.getMonth();

    y = leisure_nd.getFullYear();
    m = leisure_nd.getMonth()-1;
    d = leisure_nd.getDate();

	if(d == 31 && (mm == 2 || mm == 4 || mm == 6 || mm == 9 || mm == 11)){
		if(mm==2){
			d = 28;
		}else{
			d = 30;
		}
	}else if(eval(document.search.f_tuki1.options[document.search.f_tuki1.options.selectedIndex].value) == 1){
		if(eval(document.search.f_hi1.options[document.search.f_hi1.options.selectedIndex].value)==29){
			m = 0;
			d = 29;
		}else if(eval(document.search.f_hi1.options[document.search.f_hi1.options.selectedIndex].value)==30){
			m = 0;
			d = 30;
		}else if(eval(document.search.f_hi1.options[document.search.f_hi1.options.selectedIndex].value)==31){
			m = 0;
			d = 31;
		}
	}else if(( d == 29 || d == 30 )&& mm == 2){
		d = 28;
	}else if((eval(document.search.f_tuki1.options[document.search.f_tuki1.options.selectedIndex].value) == 5) && 
		eval(document.search.f_hi1.options[document.search.f_hi1.options.selectedIndex].value)==31){
		m = 4;
		d = 31;
	}else if((eval(document.search.f_tuki1.options[document.search.f_tuki1.options.selectedIndex].value) == 8) && 
		eval(document.search.f_hi1.options[document.search.f_hi1.options.selectedIndex].value)==31){
		m = 7;
		d = 31;
	}else if((eval(document.search.f_tuki1.options[document.search.f_tuki1.options.selectedIndex].value) == 10) && 
		eval(document.search.f_hi1.options[document.search.f_hi1.options.selectedIndex].value)==31){
		m = 9;
		d = 31;
	}else if((eval(document.search.f_tuki1.options[document.search.f_tuki1.options.selectedIndex].value) == 3) && 
		eval(document.search.f_hi1.options[document.search.f_hi1.options.selectedIndex].value)==31){
		m = 2;
		d = 31;
	}
    myDate = addDate(y, m ,d, 1);
	currYear    = myDate.getFullYear();
	currMonth   = myDate.getMonth();
	currDate    = myDate.getDate();
	document.search.f_nen2.selectedIndex = yearIndex(currYear);
	document.search.f_tuki2.selectedIndex = currMonth;
	document.search.f_hi2.selectedIndex = currDate-1;
}

