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 (LeadingZeros34469 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34469(secs) { if (secs < 0) { document.getElementById("cntdwns34469").innerHTML = FinishMessages34469; return; } DisplayStrs34469 = DisplayFormats34469.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34469 = DisplayStrs34469.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34469 = DisplayStrs34469.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34469 = DisplayStrs34469.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34469").innerHTML = DisplayStrs34469; if (CountActives34469) //alert(SetTimeOutPeriods34469); setTimeout("CountBacks34469(" + (secs+CountSteppers34469) + ")", SetTimeOutPeriods34469); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34469)=="undefined") BackColors34469 = ""; if (typeof(ForeColors34469)=="undefined") ForeColors34469= "white"; if (typeof(TargetDates34469)=="undefined") TargetDates34469 = "11/22/2026 10:00:00 PM"; if (typeof(DisplayFormats34469)=="undefined") DisplayFormats34469 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34469)=="undefined") CountActives34469 = true; if (typeof(FinishMessages34469)=="undefined") FinishMessages34469 = ""; if (typeof(CountSteppers34469)!="number") CountSteppers34469 = -1; if (typeof(LeadingZeros34469)=="undefined") LeadingZeros34469 = true; CountSteppers34469 = Math.ceil(CountSteppers34469); if (CountSteppers34469 == 0) CountActives34469 = false; var SetTimeOutPeriods34469 = (Math.abs(CountSteppers34469)-1)*1000 + 990; puti(BackColors34469, ForeColors34469); var dthens34469 = new Date(TargetDates34469); var dnows34469 = new Date("11/19/2026 9:55:08 PM"); if(CountSteppers34469>0) ddiffs34469 = new Date(dnows34469-dthens34469); else ddiffs34469 = new Date(dthens34469-dnows34469); gsecss34469 = Math.floor(ddiffs34469.valueOf()/1000); CountBacks34469(gsecss34469);