function checkdate(theForm){
	var sDate1, sDate2, this_city
	this_city = theForm.city.value
	sDate2 = theForm.indate.value
	sDate1 = theForm.outdate.value
	if (this_city == ""){
		alert("目的地を選択してください")
		return false
	}
	if (sDate2 == ""){
		alert("チェックイン時間をご記入ください")
		return false
	}
	if (sDate1 == ""){
		alert("チェックアウト時間をご記入ください")
		return false
	}
	aDate = sDate1.split("-") 
	oDate1 = new Date(aDate[1] + '-' + aDate[2] + '-' + aDate[0]) //转换为12-18-2002格式 
	aDate = sDate2.split("-") 
	oDate2 = new Date(aDate[1] + '-' + aDate[2] + '-' + aDate[0]) 
	iDays = parseInt(Math.abs(oDate1 - oDate2) / 1000 / 60 / 60 /24) //把相差的毫秒数转换为天数 
	if (oDate1 - oDate2 <= 0){
		alert("出発日の入力エラー")
		return false
	} else {
		if (iDays > 30){
			alert("ご宿泊日は30泊を超えないこと")
			//alert(DateDiff(sDate1, sDate2))
			return false
		} else {
			//alert(DateDiff(sDate1, sDate2))
			return true
		}
	}
	
}
