var idy,strData;
idy = getIntDay();
var tmLimit = new Date(99,11,31);

if( idy==0 ){
	strData = '2000年まで.....';
	tmLimit = new Date(2000,0,0,0,0);
}else if( idy==2 ){
	strData = '21世紀まで.....';
	tmLimit = new Date(2001,0,0,0,0);
}else if( idy==1 ){
	strData = 'きとらまさなおの誕生日まで.....';
	tmLimit = new Date(2001,0,21);
}else if( idy==3 ){
	strData = '卒業確定まで.....';
	tmLimit = new Date(2000,1,21,12,00);
}
document.writeln('<form name=frmCounter>'
	 + strData
	 + '<br><input type="text" name="txtLeft" align="center" size=20>秒</form>');

display();
function display(){
	setTimeout("display()",1000);
	var tmNow = new Date();
	var intLeft=parseInt((tmLimit.getTime()-tmNow.getTime())/1000);
	document.frmCounter.txtLeft.value=intLeft;
}
function getIntDay(){
	var tmNow = new Date();
	var Kazu = 4;
	var intDay = parseInt (tmNow.getTime()/(1000*60*60*24)) - parseInt (tmNow.getTime()/(1000*60*60*24*Kazu)) * Kazu;
	return(intDay);
}

