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 (LeadingZeros34142 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34142(secs) { if (secs < 0) { document.getElementById("cntdwns34142").innerHTML = FinishMessages34142; return; } DisplayStrs34142 = DisplayFormats34142.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34142 = DisplayStrs34142.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34142 = DisplayStrs34142.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34142 = DisplayStrs34142.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34142").innerHTML = DisplayStrs34142; if (CountActives34142) //alert(SetTimeOutPeriods34142); setTimeout("CountBacks34142(" + (secs+CountSteppers34142) + ")", SetTimeOutPeriods34142); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34142)=="undefined") BackColors34142 = ""; if (typeof(ForeColors34142)=="undefined") ForeColors34142= "white"; if (typeof(TargetDates34142)=="undefined") TargetDates34142 = "08/30/2026 10:00:00 PM"; if (typeof(DisplayFormats34142)=="undefined") DisplayFormats34142 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34142)=="undefined") CountActives34142 = true; if (typeof(FinishMessages34142)=="undefined") FinishMessages34142 = ""; if (typeof(CountSteppers34142)!="number") CountSteppers34142 = -1; if (typeof(LeadingZeros34142)=="undefined") LeadingZeros34142 = true; CountSteppers34142 = Math.ceil(CountSteppers34142); if (CountSteppers34142 == 0) CountActives34142 = false; var SetTimeOutPeriods34142 = (Math.abs(CountSteppers34142)-1)*1000 + 990; puti(BackColors34142, ForeColors34142); var dthens34142 = new Date(TargetDates34142); var dnows34142 = new Date("08/28/2026 11:43:37 PM"); if(CountSteppers34142>0) ddiffs34142 = new Date(dnows34142-dthens34142); else ddiffs34142 = new Date(dthens34142-dnows34142); gsecss34142 = Math.floor(ddiffs34142.valueOf()/1000); CountBacks34142(gsecss34142);