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 (LeadingZeros34487 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34487(secs) { if (secs < 0) { document.getElementById("cntdwns34487").innerHTML = FinishMessages34487; return; } DisplayStrs34487 = DisplayFormats34487.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34487 = DisplayStrs34487.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34487 = DisplayStrs34487.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34487 = DisplayStrs34487.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34487").innerHTML = DisplayStrs34487; if (CountActives34487) //alert(SetTimeOutPeriods34487); setTimeout("CountBacks34487(" + (secs+CountSteppers34487) + ")", SetTimeOutPeriods34487); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34487)=="undefined") BackColors34487 = ""; if (typeof(ForeColors34487)=="undefined") ForeColors34487= "white"; if (typeof(TargetDates34487)=="undefined") TargetDates34487 = "11/17/2026 11:00:00 PM"; if (typeof(DisplayFormats34487)=="undefined") DisplayFormats34487 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34487)=="undefined") CountActives34487 = true; if (typeof(FinishMessages34487)=="undefined") FinishMessages34487 = ""; if (typeof(CountSteppers34487)!="number") CountSteppers34487 = -1; if (typeof(LeadingZeros34487)=="undefined") LeadingZeros34487 = true; CountSteppers34487 = Math.ceil(CountSteppers34487); if (CountSteppers34487 == 0) CountActives34487 = false; var SetTimeOutPeriods34487 = (Math.abs(CountSteppers34487)-1)*1000 + 990; puti(BackColors34487, ForeColors34487); var dthens34487 = new Date(TargetDates34487); var dnows34487 = new Date("11/23/2026 10:17:25 PM"); if(CountSteppers34487>0) ddiffs34487 = new Date(dnows34487-dthens34487); else ddiffs34487 = new Date(dthens34487-dnows34487); gsecss34487 = Math.floor(ddiffs34487.valueOf()/1000); CountBacks34487(gsecss34487);