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 (LeadingZeros34191 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34191(secs) { if (secs < 0) { document.getElementById("cntdwns34191").innerHTML = FinishMessages34191; return; } DisplayStrs34191 = DisplayFormats34191.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34191 = DisplayStrs34191.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34191 = DisplayStrs34191.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34191 = DisplayStrs34191.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34191").innerHTML = DisplayStrs34191; if (CountActives34191) //alert(SetTimeOutPeriods34191); setTimeout("CountBacks34191(" + (secs+CountSteppers34191) + ")", SetTimeOutPeriods34191); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34191)=="undefined") BackColors34191 = ""; if (typeof(ForeColors34191)=="undefined") ForeColors34191= "white"; if (typeof(TargetDates34191)=="undefined") TargetDates34191 = "10/08/2026 10:00:00 AM"; if (typeof(DisplayFormats34191)=="undefined") DisplayFormats34191 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34191)=="undefined") CountActives34191 = true; if (typeof(FinishMessages34191)=="undefined") FinishMessages34191 = ""; if (typeof(CountSteppers34191)!="number") CountSteppers34191 = -1; if (typeof(LeadingZeros34191)=="undefined") LeadingZeros34191 = true; CountSteppers34191 = Math.ceil(CountSteppers34191); if (CountSteppers34191 == 0) CountActives34191 = false; var SetTimeOutPeriods34191 = (Math.abs(CountSteppers34191)-1)*1000 + 990; puti(BackColors34191, ForeColors34191); var dthens34191 = new Date(TargetDates34191); var dnows34191 = new Date("10/06/2026 7:41:05 PM"); if(CountSteppers34191>0) ddiffs34191 = new Date(dnows34191-dthens34191); else ddiffs34191 = new Date(dthens34191-dnows34191); gsecss34191 = Math.floor(ddiffs34191.valueOf()/1000); CountBacks34191(gsecss34191);