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 (LeadingZeros34057 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34057(secs) { if (secs < 0) { document.getElementById("cntdwns34057").innerHTML = FinishMessages34057; return; } DisplayStrs34057 = DisplayFormats34057.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34057 = DisplayStrs34057.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34057 = DisplayStrs34057.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34057 = DisplayStrs34057.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34057").innerHTML = DisplayStrs34057; if (CountActives34057) //alert(SetTimeOutPeriods34057); setTimeout("CountBacks34057(" + (secs+CountSteppers34057) + ")", SetTimeOutPeriods34057); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34057)=="undefined") BackColors34057 = ""; if (typeof(ForeColors34057)=="undefined") ForeColors34057= "white"; if (typeof(TargetDates34057)=="undefined") TargetDates34057 = "08/10/2026 10:00:00 PM"; if (typeof(DisplayFormats34057)=="undefined") DisplayFormats34057 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34057)=="undefined") CountActives34057 = true; if (typeof(FinishMessages34057)=="undefined") FinishMessages34057 = ""; if (typeof(CountSteppers34057)!="number") CountSteppers34057 = -1; if (typeof(LeadingZeros34057)=="undefined") LeadingZeros34057 = true; CountSteppers34057 = Math.ceil(CountSteppers34057); if (CountSteppers34057 == 0) CountActives34057 = false; var SetTimeOutPeriods34057 = (Math.abs(CountSteppers34057)-1)*1000 + 990; puti(BackColors34057, ForeColors34057); var dthens34057 = new Date(TargetDates34057); var dnows34057 = new Date("08/08/2026 11:58:54 AM"); if(CountSteppers34057>0) ddiffs34057 = new Date(dnows34057-dthens34057); else ddiffs34057 = new Date(dthens34057-dnows34057); gsecss34057 = Math.floor(ddiffs34057.valueOf()/1000); CountBacks34057(gsecss34057);