function nw(lnk)
 {
 	window.open(lnk.href,'_blank','resizable=1,scrollbars=1,status=1,menubar=1,toolbar=1,width=870,height=400');
 	return false;
 }


apc = new Date(2009,4,30)

function display() {
        today = new Date()
        days = Math.floor((apc-today)/(24*60*60*1000))
        time1 = Math.floor(((apc-today)%(24*60*60*1000))/(60*60*1000))
        time2 = Math.floor(((apc-today)%(24*60*60*1000))/(60*1000))%60
        time3 = Math.floor(((apc-today)%(24*60*60*1000))/1000)%60%60

        if((apc - today) > 0){
                document.getElementById("countdown").innerHTML = days+"&nbsp;<span style='font-size:10pt;'>日</span>&nbsp;"+time1+"&nbsp;<span style='font-size:10pt;'>時間</span>&nbsp;"+time2+"&nbsp;<span style='font-size:10pt;'>分</span>&nbsp;"+time3+"&nbsp;<span style='font-size:10pt;'>秒</span>"
        }else{
                document.getElementById("countdown").innerHTML = "APC40発売中！！"
        }
        tid = setTimeout("display()", 1000)
}
