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 (LeadingZeros34238 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34238(secs) { if (secs < 0) { document.getElementById("cntdwns34238").innerHTML = FinishMessages34238; return; } DisplayStrs34238 = DisplayFormats34238.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34238 = DisplayStrs34238.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34238 = DisplayStrs34238.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34238 = DisplayStrs34238.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34238").innerHTML = DisplayStrs34238; if (CountActives34238) //alert(SetTimeOutPeriods34238); setTimeout("CountBacks34238(" + (secs+CountSteppers34238) + ")", SetTimeOutPeriods34238); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34238)=="undefined") BackColors34238 = ""; if (typeof(ForeColors34238)=="undefined") ForeColors34238= "white"; if (typeof(TargetDates34238)=="undefined") TargetDates34238 = "10/03/2026 11:00:00 PM"; if (typeof(DisplayFormats34238)=="undefined") DisplayFormats34238 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34238)=="undefined") CountActives34238 = true; if (typeof(FinishMessages34238)=="undefined") FinishMessages34238 = ""; if (typeof(CountSteppers34238)!="number") CountSteppers34238 = -1; if (typeof(LeadingZeros34238)=="undefined") LeadingZeros34238 = true; CountSteppers34238 = Math.ceil(CountSteppers34238); if (CountSteppers34238 == 0) CountActives34238 = false; var SetTimeOutPeriods34238 = (Math.abs(CountSteppers34238)-1)*1000 + 990; puti(BackColors34238, ForeColors34238); var dthens34238 = new Date(TargetDates34238); var dnows34238 = new Date("10/02/2026 3:32:59 PM"); if(CountSteppers34238>0) ddiffs34238 = new Date(dnows34238-dthens34238); else ddiffs34238 = new Date(dthens34238-dnows34238); gsecss34238 = Math.floor(ddiffs34238.valueOf()/1000); CountBacks34238(gsecss34238);