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 (LeadingZeros34202 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34202(secs) { if (secs < 0) { document.getElementById("cntdwns34202").innerHTML = FinishMessages34202; return; } DisplayStrs34202 = DisplayFormats34202.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34202 = DisplayStrs34202.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34202 = DisplayStrs34202.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34202 = DisplayStrs34202.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34202").innerHTML = DisplayStrs34202; if (CountActives34202) //alert(SetTimeOutPeriods34202); setTimeout("CountBacks34202(" + (secs+CountSteppers34202) + ")", SetTimeOutPeriods34202); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34202)=="undefined") BackColors34202 = ""; if (typeof(ForeColors34202)=="undefined") ForeColors34202= "white"; if (typeof(TargetDates34202)=="undefined") TargetDates34202 = "10/07/2026 10:00:00 PM"; if (typeof(DisplayFormats34202)=="undefined") DisplayFormats34202 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34202)=="undefined") CountActives34202 = true; if (typeof(FinishMessages34202)=="undefined") FinishMessages34202 = ""; if (typeof(CountSteppers34202)!="number") CountSteppers34202 = -1; if (typeof(LeadingZeros34202)=="undefined") LeadingZeros34202 = true; CountSteppers34202 = Math.ceil(CountSteppers34202); if (CountSteppers34202 == 0) CountActives34202 = false; var SetTimeOutPeriods34202 = (Math.abs(CountSteppers34202)-1)*1000 + 990; puti(BackColors34202, ForeColors34202); var dthens34202 = new Date(TargetDates34202); var dnows34202 = new Date("10/05/2026 8:53:51 AM"); if(CountSteppers34202>0) ddiffs34202 = new Date(dnows34202-dthens34202); else ddiffs34202 = new Date(dthens34202-dnows34202); gsecss34202 = Math.floor(ddiffs34202.valueOf()/1000); CountBacks34202(gsecss34202);