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 (LeadingZeros34110 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34110(secs) { if (secs < 0) { document.getElementById("cntdwns34110").innerHTML = FinishMessages34110; return; } DisplayStrs34110 = DisplayFormats34110.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34110 = DisplayStrs34110.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34110 = DisplayStrs34110.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34110 = DisplayStrs34110.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34110").innerHTML = DisplayStrs34110; if (CountActives34110) //alert(SetTimeOutPeriods34110); setTimeout("CountBacks34110(" + (secs+CountSteppers34110) + ")", SetTimeOutPeriods34110); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34110)=="undefined") BackColors34110 = ""; if (typeof(ForeColors34110)=="undefined") ForeColors34110= "white"; if (typeof(TargetDates34110)=="undefined") TargetDates34110 = "08/16/2026 10:00:00 PM"; if (typeof(DisplayFormats34110)=="undefined") DisplayFormats34110 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34110)=="undefined") CountActives34110 = true; if (typeof(FinishMessages34110)=="undefined") FinishMessages34110 = ""; if (typeof(CountSteppers34110)!="number") CountSteppers34110 = -1; if (typeof(LeadingZeros34110)=="undefined") LeadingZeros34110 = true; CountSteppers34110 = Math.ceil(CountSteppers34110); if (CountSteppers34110 == 0) CountActives34110 = false; var SetTimeOutPeriods34110 = (Math.abs(CountSteppers34110)-1)*1000 + 990; puti(BackColors34110, ForeColors34110); var dthens34110 = new Date(TargetDates34110); var dnows34110 = new Date("08/24/2026 12:12:36 PM"); if(CountSteppers34110>0) ddiffs34110 = new Date(dnows34110-dthens34110); else ddiffs34110 = new Date(dthens34110-dnows34110); gsecss34110 = Math.floor(ddiffs34110.valueOf()/1000); CountBacks34110(gsecss34110);