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 (LeadingZeros34029 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34029(secs) { if (secs < 0) { document.getElementById("cntdwns34029").innerHTML = FinishMessages34029; return; } DisplayStrs34029 = DisplayFormats34029.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34029 = DisplayStrs34029.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34029 = DisplayStrs34029.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34029 = DisplayStrs34029.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34029").innerHTML = DisplayStrs34029; if (CountActives34029) //alert(SetTimeOutPeriods34029); setTimeout("CountBacks34029(" + (secs+CountSteppers34029) + ")", SetTimeOutPeriods34029); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34029)=="undefined") BackColors34029 = ""; if (typeof(ForeColors34029)=="undefined") ForeColors34029= "white"; if (typeof(TargetDates34029)=="undefined") TargetDates34029 = "06/24/2026 10:00:00 PM"; if (typeof(DisplayFormats34029)=="undefined") DisplayFormats34029 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34029)=="undefined") CountActives34029 = true; if (typeof(FinishMessages34029)=="undefined") FinishMessages34029 = ""; if (typeof(CountSteppers34029)!="number") CountSteppers34029 = -1; if (typeof(LeadingZeros34029)=="undefined") LeadingZeros34029 = true; CountSteppers34029 = Math.ceil(CountSteppers34029); if (CountSteppers34029 == 0) CountActives34029 = false; var SetTimeOutPeriods34029 = (Math.abs(CountSteppers34029)-1)*1000 + 990; puti(BackColors34029, ForeColors34029); var dthens34029 = new Date(TargetDates34029); var dnows34029 = new Date("06/22/2026 4:05:24 AM"); if(CountSteppers34029>0) ddiffs34029 = new Date(dnows34029-dthens34029); else ddiffs34029 = new Date(dthens34029-dnows34029); gsecss34029 = Math.floor(ddiffs34029.valueOf()/1000); CountBacks34029(gsecss34029);