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 (LeadingZeros34225 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34225(secs) { if (secs < 0) { document.getElementById("cntdwns34225").innerHTML = FinishMessages34225; return; } DisplayStrs34225 = DisplayFormats34225.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34225 = DisplayStrs34225.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34225 = DisplayStrs34225.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34225 = DisplayStrs34225.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34225").innerHTML = DisplayStrs34225; if (CountActives34225) //alert(SetTimeOutPeriods34225); setTimeout("CountBacks34225(" + (secs+CountSteppers34225) + ")", SetTimeOutPeriods34225); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34225)=="undefined") BackColors34225 = ""; if (typeof(ForeColors34225)=="undefined") ForeColors34225= "white"; if (typeof(TargetDates34225)=="undefined") TargetDates34225 = "10/06/2026 4:00:00 PM"; if (typeof(DisplayFormats34225)=="undefined") DisplayFormats34225 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34225)=="undefined") CountActives34225 = true; if (typeof(FinishMessages34225)=="undefined") FinishMessages34225 = ""; if (typeof(CountSteppers34225)!="number") CountSteppers34225 = -1; if (typeof(LeadingZeros34225)=="undefined") LeadingZeros34225 = true; CountSteppers34225 = Math.ceil(CountSteppers34225); if (CountSteppers34225 == 0) CountActives34225 = false; var SetTimeOutPeriods34225 = (Math.abs(CountSteppers34225)-1)*1000 + 990; puti(BackColors34225, ForeColors34225); var dthens34225 = new Date(TargetDates34225); var dnows34225 = new Date("10/04/2026 6:25:34 PM"); if(CountSteppers34225>0) ddiffs34225 = new Date(dnows34225-dthens34225); else ddiffs34225 = new Date(dthens34225-dnows34225); gsecss34225 = Math.floor(ddiffs34225.valueOf()/1000); CountBacks34225(gsecss34225);