	//Load時のイベントバインド
	//イベントの処理
	$(document).ready(function(){
		$.timer(60000, function (timer) {
			calcTime();
		    //timer.stop();
		});
		calcTime();
	});

	function calcTime(){
		var allObj = $('input:hidden');
		allObj.each(function(){
			var idStr = $(this).attr('id');
			var idLen = $(this).attr('id').length;
			//idLimitTime1形式でIDが入る
			var intPos = idStr.substr(11,idLen);
			var chkIdStr = idStr.substr(0,11);
			if(chkIdStr == 'idLimitTime'){
				var limitdate = new Date($("#" + idStr).val());
				var nowdate = new Date();
				var timediff = limitdate.getTime() - nowdate.getTime();
				if(timediff < 0){
					//alert($("#idTimeDiff" + intPos).html());
					$("#idTimeDiff" + intPos).html("今すぐOK！");
				} else {
					var calcM = Math.round(parseInt(timediff) / (60 * 1000));
					$("#idTimeDiff" + intPos).html(calcM + "分待ち");
				}
			}
		});

	}


