function calcage(secs, num1, num2, addDay, seconds) { if (addDay == 1){ s = ((Math.floor(secs/num1))).toString(); } else{ s = ((Math.floor(secs/num1))%num2).toString(); } if (LeadingZeros34231 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34231(secs) { if (secs < 0) { document.getElementById("cntdwns34231").innerHTML = FinishMessages34231; return; } DisplayStrs34231 = DisplayFormats34231.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34231 = DisplayStrs34231.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34231 = DisplayStrs34231.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34231 = DisplayStrs34231.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34231").innerHTML = DisplayStrs34231; if (CountActives34231) //alert(SetTimeOutPeriods34231); setTimeout("CountBacks34231(" + (secs+CountSteppers34231) + ")", SetTimeOutPeriods34231); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34231)=="undefined") BackColors34231 = ""; if (typeof(ForeColors34231)=="undefined") ForeColors34231= "white"; if (typeof(TargetDates34231)=="undefined") TargetDates34231 = "11/25/2026 9:00:00 AM"; if (typeof(DisplayFormats34231)=="undefined") DisplayFormats34231 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34231)=="undefined") CountActives34231 = true; if (typeof(FinishMessages34231)=="undefined") FinishMessages34231 = ""; if (typeof(CountSteppers34231)!="number") CountSteppers34231 = -1; if (typeof(LeadingZeros34231)=="undefined") LeadingZeros34231 = true; CountSteppers34231 = Math.ceil(CountSteppers34231); if (CountSteppers34231 == 0) CountActives34231 = false; var SetTimeOutPeriods34231 = (Math.abs(CountSteppers34231)-1)*1000 + 990; puti(BackColors34231, ForeColors34231); var dthens34231 = new Date(TargetDates34231); var dnows34231 = new Date("11/23/2026 1:05:00 AM"); if(CountSteppers34231>0) ddiffs34231 = new Date(dnows34231-dthens34231); else ddiffs34231 = new Date(dthens34231-dnows34231); gsecss34231 = Math.floor(ddiffs34231.valueOf()/1000); CountBacks34231(gsecss34231);