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 (LeadingZeros34171 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34171(secs) { if (secs < 0) { document.getElementById("cntdwns34171").innerHTML = FinishMessages34171; return; } DisplayStrs34171 = DisplayFormats34171.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34171 = DisplayStrs34171.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34171 = DisplayStrs34171.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34171 = DisplayStrs34171.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34171").innerHTML = DisplayStrs34171; if (CountActives34171) //alert(SetTimeOutPeriods34171); setTimeout("CountBacks34171(" + (secs+CountSteppers34171) + ")", SetTimeOutPeriods34171); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34171)=="undefined") BackColors34171 = ""; if (typeof(ForeColors34171)=="undefined") ForeColors34171= "white"; if (typeof(TargetDates34171)=="undefined") TargetDates34171 = "09/12/2026 10:00:00 PM"; if (typeof(DisplayFormats34171)=="undefined") DisplayFormats34171 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34171)=="undefined") CountActives34171 = true; if (typeof(FinishMessages34171)=="undefined") FinishMessages34171 = ""; if (typeof(CountSteppers34171)!="number") CountSteppers34171 = -1; if (typeof(LeadingZeros34171)=="undefined") LeadingZeros34171 = true; CountSteppers34171 = Math.ceil(CountSteppers34171); if (CountSteppers34171 == 0) CountActives34171 = false; var SetTimeOutPeriods34171 = (Math.abs(CountSteppers34171)-1)*1000 + 990; puti(BackColors34171, ForeColors34171); var dthens34171 = new Date(TargetDates34171); var dnows34171 = new Date("09/09/2026 4:49:16 AM"); if(CountSteppers34171>0) ddiffs34171 = new Date(dnows34171-dthens34171); else ddiffs34171 = new Date(dthens34171-dnows34171); gsecss34171 = Math.floor(ddiffs34171.valueOf()/1000); CountBacks34171(gsecss34171);