function cntDwn(tgtMsg, tgtYY, tgtMM, tgtDD, trmDs)
{
	tdy		= new Date();
	tgtDat	= new Date(tgtYY, tgtMM-1, tgtDD);
	rmn		= tdy.getTime()-tgtDat.getTime();
	dayCnt	= Math.floor(rmn/(24*60*60*1000));
	trmDs	= trmDs -1;

	if		(dayCnt< 0    )	{	document.write(tgtMsg+ '初日まで、あと ' +dayCnt*(-1)+ '日');					}
	else if (dayCnt> trmDs)	{	document.write(tgtMsg+ '最終日から ' +(dayCnt-trmDs)+ '日経過');				}
	else					{	document.write(tgtMsg+ '開催中！　<span class=sml2>…のハズ　(^^;</span>');		}
}


