// ¸îÃÊ¸¶´Ù ¸®ÇÁ·¹½¬ ½ÃÅ³°ÇÁö ¼³Á¤
var refreshinterval=300 

// »óÅÂ¹Ù¿¡ ³²Àº½Ã°£ º¸¿©ÁÙÁö ¼³Á¤("yes" È¤Àº "no" )
var displaycountdown="no" 
var starttime
var nowtime
var reloadseconds=0
var secondssinceloaded=0 

function starttime() {
	starttime=new Date()
	starttime=starttime.getTime()
	countdown()
}

function countdown() {
	nowtime= new Date()
	nowtime=nowtime.getTime()
	secondssinceloaded=(nowtime-starttime)/1000
	reloadseconds=Math.round(refreshinterval-secondssinceloaded)
	if (refreshinterval>=secondssinceloaded) {
		var timer=setTimeout("countdown()",1000)
		
		if (displaycountdown=="yes") {
			window.status="ÀÌ ÆäÀÌÁö´Â "+reloadseconds+ "ÃÊ ÈÄ¿¡ ¸®ÇÁ·¹½¬µË´Ï´Ù"
		}
	}else{
		clearTimeout(timer)
		window.location.reload(true)
	}
}
window.onload=starttime







