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 (LeadingZeros34139 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34139(secs) { if (secs < 0) { document.getElementById("cntdwns34139").innerHTML = FinishMessages34139; return; } DisplayStrs34139 = DisplayFormats34139.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34139 = DisplayStrs34139.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34139 = DisplayStrs34139.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34139 = DisplayStrs34139.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34139").innerHTML = DisplayStrs34139; if (CountActives34139) //alert(SetTimeOutPeriods34139); setTimeout("CountBacks34139(" + (secs+CountSteppers34139) + ")", SetTimeOutPeriods34139); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34139)=="undefined") BackColors34139 = ""; if (typeof(ForeColors34139)=="undefined") ForeColors34139= "white"; if (typeof(TargetDates34139)=="undefined") TargetDates34139 = "08/23/2026 10:00:00 PM"; if (typeof(DisplayFormats34139)=="undefined") DisplayFormats34139 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34139)=="undefined") CountActives34139 = true; if (typeof(FinishMessages34139)=="undefined") FinishMessages34139 = ""; if (typeof(CountSteppers34139)!="number") CountSteppers34139 = -1; if (typeof(LeadingZeros34139)=="undefined") LeadingZeros34139 = true; CountSteppers34139 = Math.ceil(CountSteppers34139); if (CountSteppers34139 == 0) CountActives34139 = false; var SetTimeOutPeriods34139 = (Math.abs(CountSteppers34139)-1)*1000 + 990; puti(BackColors34139, ForeColors34139); var dthens34139 = new Date(TargetDates34139); var dnows34139 = new Date("08/21/2026 3:04:46 AM"); if(CountSteppers34139>0) ddiffs34139 = new Date(dnows34139-dthens34139); else ddiffs34139 = new Date(dthens34139-dnows34139); gsecss34139 = Math.floor(ddiffs34139.valueOf()/1000); CountBacks34139(gsecss34139);