﻿<!--
function chkForm(){
	with(document.fm1011011){
		if( fmName.value.length<1 && fmAccount.value.length<1 ){
			alert('『真實姓名』或『會員帳號』，請擇一輸入！');
			return false;
		}
		if( fmYear.value.length != 4 || fmMonth.value.length < 1 || fmDay.value.length < 1 ){
			alert('請選擇『出生日期』！');
			fmMonth.options.selectedIndex = 0;
			fmYear.focus();
			return false;
		}
		submit();
	}
}
function funDay(iYear,iMonth){
	if( iYear == "" || iMonth == "" ){
		divDay.innerHTML = ("<select name='fmDay' style='width:40;font-size:8pt;'><option>--</option></select>日");
		return false;
	}
	var iDay,thisDay
	var strDay = "<select name='fmDay' style='width:40;font-size:8pt;'><option>--</option>";
	var arrDays = new Array(31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31);
	if( (iYear % 400 == 0) || ((iYear % 4 == 0) && (iYear % 100 != 0)) ){
		arrDays[1] = 29;
	}
	for( iDay=1;iDay<arrDays[iMonth-1]+1;iDay++ ){
		strDay = strDay + "<option value=" + iDay + ">" + iDay + "</option>";
	}
	strDay = strDay + "</select>日";
	divDay.innerHTML = strDay;
}
-->
