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 (LeadingZeros34048 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34048(secs) { if (secs < 0) { document.getElementById("cntdwns34048").innerHTML = FinishMessages34048; return; } DisplayStrs34048 = DisplayFormats34048.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34048 = DisplayStrs34048.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34048 = DisplayStrs34048.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34048 = DisplayStrs34048.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34048").innerHTML = DisplayStrs34048; if (CountActives34048) //alert(SetTimeOutPeriods34048); setTimeout("CountBacks34048(" + (secs+CountSteppers34048) + ")", SetTimeOutPeriods34048); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34048)=="undefined") BackColors34048 = ""; if (typeof(ForeColors34048)=="undefined") ForeColors34048= "white"; if (typeof(TargetDates34048)=="undefined") TargetDates34048 = "07/24/2026 10:00:00 PM"; if (typeof(DisplayFormats34048)=="undefined") DisplayFormats34048 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34048)=="undefined") CountActives34048 = true; if (typeof(FinishMessages34048)=="undefined") FinishMessages34048 = ""; if (typeof(CountSteppers34048)!="number") CountSteppers34048 = -1; if (typeof(LeadingZeros34048)=="undefined") LeadingZeros34048 = true; CountSteppers34048 = Math.ceil(CountSteppers34048); if (CountSteppers34048 == 0) CountActives34048 = false; var SetTimeOutPeriods34048 = (Math.abs(CountSteppers34048)-1)*1000 + 990; puti(BackColors34048, ForeColors34048); var dthens34048 = new Date(TargetDates34048); var dnows34048 = new Date("07/21/2026 12:56:05 PM"); if(CountSteppers34048>0) ddiffs34048 = new Date(dnows34048-dthens34048); else ddiffs34048 = new Date(dthens34048-dnows34048); gsecss34048 = Math.floor(ddiffs34048.valueOf()/1000); CountBacks34048(gsecss34048);