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 (LeadingZeros34021 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34021(secs) { if (secs < 0) { document.getElementById("cntdwns34021").innerHTML = FinishMessages34021; return; } DisplayStrs34021 = DisplayFormats34021.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34021 = DisplayStrs34021.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34021 = DisplayStrs34021.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34021 = DisplayStrs34021.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34021").innerHTML = DisplayStrs34021; if (CountActives34021) //alert(SetTimeOutPeriods34021); setTimeout("CountBacks34021(" + (secs+CountSteppers34021) + ")", SetTimeOutPeriods34021); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34021)=="undefined") BackColors34021 = ""; if (typeof(ForeColors34021)=="undefined") ForeColors34021= "white"; if (typeof(TargetDates34021)=="undefined") TargetDates34021 = "07/07/2026 10:00:00 PM"; if (typeof(DisplayFormats34021)=="undefined") DisplayFormats34021 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34021)=="undefined") CountActives34021 = true; if (typeof(FinishMessages34021)=="undefined") FinishMessages34021 = ""; if (typeof(CountSteppers34021)!="number") CountSteppers34021 = -1; if (typeof(LeadingZeros34021)=="undefined") LeadingZeros34021 = true; CountSteppers34021 = Math.ceil(CountSteppers34021); if (CountSteppers34021 == 0) CountActives34021 = false; var SetTimeOutPeriods34021 = (Math.abs(CountSteppers34021)-1)*1000 + 990; puti(BackColors34021, ForeColors34021); var dthens34021 = new Date(TargetDates34021); var dnows34021 = new Date("07/05/2026 2:38:16 AM"); if(CountSteppers34021>0) ddiffs34021 = new Date(dnows34021-dthens34021); else ddiffs34021 = new Date(dthens34021-dnows34021); gsecss34021 = Math.floor(ddiffs34021.valueOf()/1000); CountBacks34021(gsecss34021);