function checkInput4ChineseModule() {
	var isValidated = true;
					
	if (!IsNumeric(document.chineseForm.inmonth.value) || document.chineseForm.inmonth.value <= 0 || document.chineseForm.inmonth.value > 12) { 
		document.chineseForm.inmonth.value = "month(mm)";
		isValidated = false;
	}
					
	if (!IsNumeric(document.chineseForm.inday.value) || document.chineseForm.inday.value <= 0 || document.chineseForm.inday.value > 31) {
		document.chineseForm.inday.value = "day(dd)";	
		isValidated = false;
	}
					
	if (!IsNumeric(document.chineseForm.inyear.value)) {
		document.chineseForm.inyear.value = "1970";	
		isValidated = false;
	}	
					
	if (isValidated) window.document.chineseForm.submit();
}

function checkInput4ChineseModuleOnChinesePage() {
	var isValidated = true;
			
	if (!IsNumeric(document.chineseForm.Month.value) || document.chineseForm.Month.value <= 0 || document.chineseForm.Month.value > 12) { 
		document.chineseForm.Month.value = "month(mm)";
		isValidated = false;
	}
					
	if (!IsNumeric(document.chineseForm.Date.value) || document.chineseForm.Date.value <= 0 || document.chineseForm.Date.value > 31) {
		document.chineseForm.Date.value = "day(dd)";	
		isValidated = false;
	}
					
	if (!IsNumeric(document.chineseForm.Year.value)) {
		document.chineseForm.Year.value = "year(yyyy)";	
		isValidated = false;
	}	
					
	if (isValidated) document.chineseForm.submit();
	else document.chineseForm.cSign.value = "invalid birthday";
}
			
function IsNumeric(input) {
		return (input - 0) == input && input.length > 0;
}