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 (LeadingZeros34084 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34084(secs) { if (secs < 0) { document.getElementById("cntdwns34084").innerHTML = FinishMessages34084; return; } DisplayStrs34084 = DisplayFormats34084.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34084 = DisplayStrs34084.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34084 = DisplayStrs34084.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34084 = DisplayStrs34084.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34084").innerHTML = DisplayStrs34084; if (CountActives34084) //alert(SetTimeOutPeriods34084); setTimeout("CountBacks34084(" + (secs+CountSteppers34084) + ")", SetTimeOutPeriods34084); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34084)=="undefined") BackColors34084 = ""; if (typeof(ForeColors34084)=="undefined") ForeColors34084= "white"; if (typeof(TargetDates34084)=="undefined") TargetDates34084 = "09/03/2026 10:00:00 PM"; if (typeof(DisplayFormats34084)=="undefined") DisplayFormats34084 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34084)=="undefined") CountActives34084 = true; if (typeof(FinishMessages34084)=="undefined") FinishMessages34084 = ""; if (typeof(CountSteppers34084)!="number") CountSteppers34084 = -1; if (typeof(LeadingZeros34084)=="undefined") LeadingZeros34084 = true; CountSteppers34084 = Math.ceil(CountSteppers34084); if (CountSteppers34084 == 0) CountActives34084 = false; var SetTimeOutPeriods34084 = (Math.abs(CountSteppers34084)-1)*1000 + 990; puti(BackColors34084, ForeColors34084); var dthens34084 = new Date(TargetDates34084); var dnows34084 = new Date("09/01/2026 8:41:01 PM"); if(CountSteppers34084>0) ddiffs34084 = new Date(dnows34084-dthens34084); else ddiffs34084 = new Date(dthens34084-dnows34084); gsecss34084 = Math.floor(ddiffs34084.valueOf()/1000); CountBacks34084(gsecss34084);