function checkIsDate(year, month, day) {
	var dateStr = year + "/" + month + "/" + day;
	
	var accDate = new Date(dateStr);

	var tempYear = accDate.getFullYear();
	var tempMonth = accDate.getMonth() + 1;
	var tempDay = accDate.getDate();
	
	//if(tempMonth < 10) tempMonth = "0" + tempMonth;
	//if(tempDay < 10) tempDay = "0" + tempDay;
	
	var tempDate = tempYear + "/" + tempMonth + "/" + tempDay;
	
	if (dateStr == tempDate) {
	 	//alert("success " + dateStr + " / " + tempDate);
	    return true;
	} else {
		alert("生日的日期有問題");
	 	alert("fail " + dateStr + " / " + tempDate);
	 	return false;
	}
}

function checkIsDate1(date) {
	var dateStr = date;
	
	var accDate = new Date(dateStr);

	var tempYear = accDate.getFullYear();
	var tempMonth = accDate.getMonth() + 1;
	var tempDay = accDate.getDate();
	var tempDate = tempYear + "/" + tempMonth + "/" + tempDay;
	
	if (dateStr == tempDate) {
	    return true;
	} else {
		//alert("日期有問題");
		alert("fail " + dateStr + " / " + tempDate);
	 	return false;
	}
}

function checkIsDate2(date) {
	if (isNaN(Date.parse(date)) == true) {
		return false;
	} else {
		return true;
	}
}


