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 (LeadingZeros34065 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34065(secs) { if (secs < 0) { document.getElementById("cntdwns34065").innerHTML = FinishMessages34065; return; } DisplayStrs34065 = DisplayFormats34065.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34065 = DisplayStrs34065.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34065 = DisplayStrs34065.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34065 = DisplayStrs34065.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34065").innerHTML = DisplayStrs34065; if (CountActives34065) //alert(SetTimeOutPeriods34065); setTimeout("CountBacks34065(" + (secs+CountSteppers34065) + ")", SetTimeOutPeriods34065); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34065)=="undefined") BackColors34065 = ""; if (typeof(ForeColors34065)=="undefined") ForeColors34065= "white"; if (typeof(TargetDates34065)=="undefined") TargetDates34065 = "08/15/2026 10:00:00 PM"; if (typeof(DisplayFormats34065)=="undefined") DisplayFormats34065 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34065)=="undefined") CountActives34065 = true; if (typeof(FinishMessages34065)=="undefined") FinishMessages34065 = ""; if (typeof(CountSteppers34065)!="number") CountSteppers34065 = -1; if (typeof(LeadingZeros34065)=="undefined") LeadingZeros34065 = true; CountSteppers34065 = Math.ceil(CountSteppers34065); if (CountSteppers34065 == 0) CountActives34065 = false; var SetTimeOutPeriods34065 = (Math.abs(CountSteppers34065)-1)*1000 + 990; puti(BackColors34065, ForeColors34065); var dthens34065 = new Date(TargetDates34065); var dnows34065 = new Date("08/25/2026 9:51:31 PM"); if(CountSteppers34065>0) ddiffs34065 = new Date(dnows34065-dthens34065); else ddiffs34065 = new Date(dthens34065-dnows34065); gsecss34065 = Math.floor(ddiffs34065.valueOf()/1000); CountBacks34065(gsecss34065);