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 (LeadingZeros34270 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34270(secs) { if (secs < 0) { document.getElementById("cntdwns34270").innerHTML = FinishMessages34270; return; } DisplayStrs34270 = DisplayFormats34270.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34270 = DisplayStrs34270.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34270 = DisplayStrs34270.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34270 = DisplayStrs34270.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34270").innerHTML = DisplayStrs34270; if (CountActives34270) //alert(SetTimeOutPeriods34270); setTimeout("CountBacks34270(" + (secs+CountSteppers34270) + ")", SetTimeOutPeriods34270); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34270)=="undefined") BackColors34270 = ""; if (typeof(ForeColors34270)=="undefined") ForeColors34270= "white"; if (typeof(TargetDates34270)=="undefined") TargetDates34270 = "10/27/2026 7:00:00 AM"; if (typeof(DisplayFormats34270)=="undefined") DisplayFormats34270 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34270)=="undefined") CountActives34270 = true; if (typeof(FinishMessages34270)=="undefined") FinishMessages34270 = ""; if (typeof(CountSteppers34270)!="number") CountSteppers34270 = -1; if (typeof(LeadingZeros34270)=="undefined") LeadingZeros34270 = true; CountSteppers34270 = Math.ceil(CountSteppers34270); if (CountSteppers34270 == 0) CountActives34270 = false; var SetTimeOutPeriods34270 = (Math.abs(CountSteppers34270)-1)*1000 + 990; puti(BackColors34270, ForeColors34270); var dthens34270 = new Date(TargetDates34270); var dnows34270 = new Date("10/25/2026 3:21:39 AM"); if(CountSteppers34270>0) ddiffs34270 = new Date(dnows34270-dthens34270); else ddiffs34270 = new Date(dthens34270-dnows34270); gsecss34270 = Math.floor(ddiffs34270.valueOf()/1000); CountBacks34270(gsecss34270);