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 (LeadingZeros34161 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34161(secs) { if (secs < 0) { document.getElementById("cntdwns34161").innerHTML = FinishMessages34161; return; } DisplayStrs34161 = DisplayFormats34161.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34161 = DisplayStrs34161.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34161 = DisplayStrs34161.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34161 = DisplayStrs34161.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34161").innerHTML = DisplayStrs34161; if (CountActives34161) //alert(SetTimeOutPeriods34161); setTimeout("CountBacks34161(" + (secs+CountSteppers34161) + ")", SetTimeOutPeriods34161); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34161)=="undefined") BackColors34161 = ""; if (typeof(ForeColors34161)=="undefined") ForeColors34161= "white"; if (typeof(TargetDates34161)=="undefined") TargetDates34161 = "09/01/2026 11:00:00 PM"; if (typeof(DisplayFormats34161)=="undefined") DisplayFormats34161 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34161)=="undefined") CountActives34161 = true; if (typeof(FinishMessages34161)=="undefined") FinishMessages34161 = ""; if (typeof(CountSteppers34161)!="number") CountSteppers34161 = -1; if (typeof(LeadingZeros34161)=="undefined") LeadingZeros34161 = true; CountSteppers34161 = Math.ceil(CountSteppers34161); if (CountSteppers34161 == 0) CountActives34161 = false; var SetTimeOutPeriods34161 = (Math.abs(CountSteppers34161)-1)*1000 + 990; puti(BackColors34161, ForeColors34161); var dthens34161 = new Date(TargetDates34161); var dnows34161 = new Date("08/30/2026 11:36:26 PM"); if(CountSteppers34161>0) ddiffs34161 = new Date(dnows34161-dthens34161); else ddiffs34161 = new Date(dthens34161-dnows34161); gsecss34161 = Math.floor(ddiffs34161.valueOf()/1000); CountBacks34161(gsecss34161);