function check_search(TheForm) {
	if(TheForm.s_arg.value == "") {
		alert("°Ë»ö¾î¸¦ ÀÔ·ÂÇÏ¼¼¿ä");
		TheForm.s_arg.focus();
		return false;
	}
	return true;
}

function is_yun_year(yr) {
	if(((yr%4) == 0 && (yr%100) != 0) || (yr%400) == 0)
		return 1;
	else
		return 0;
}

function resetdays(yr,mon,selector) {
	monthdays = new Array(12);
	monthdays[0] = 31;
	if(is_yun_year(eval(yr)))	monthdays[1] = 29;
	else						monthdays[1] = 28;
	monthdays[2] = 31;
	monthdays[3] = 30;
	monthdays[4] = 31;
	monthdays[5] = 30;
	monthdays[6] = 31;
	monthdays[7] = 31;
	monthdays[8] = 30;
	monthdays[9] = 31;
	monthdays[10] = 30;
	monthdays[11] = 31;

	var i=0;
	var	del_idx;
	if(selector.options.length < monthdays[eval(mon)-1]) {
		var NewOpt = Array(3);
		while(selector.options.length < monthdays[eval(mon)-1]) {
			NewOpt[i] = document.createElement('OPTION');
			selector.options.add(NewOpt[i]);
			i++;
		}
	} else if(selector.options.length > monthdays[eval(mon)-1]) {
		while(selector.options.length > monthdays[eval(mon)-1]) {
			del_idx = selector.options.length - 1;
			selector.options.remove(del_idx);
		}
	}
	var	dvalue;
	for(i=1; i<=monthdays[eval(mon)-1]; i++) {
		if(i<10)	dvalue = "0"+i;
		else		dvalue = i;
		selector.options[i-1].value = dvalue;
		selector.options[i-1].text = dvalue+"ÀÏ";
	}
}
