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 (LeadingZeros34262 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34262(secs) { if (secs < 0) { document.getElementById("cntdwns34262").innerHTML = FinishMessages34262; return; } DisplayStrs34262 = DisplayFormats34262.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34262 = DisplayStrs34262.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34262 = DisplayStrs34262.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34262 = DisplayStrs34262.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34262").innerHTML = DisplayStrs34262; if (CountActives34262) //alert(SetTimeOutPeriods34262); setTimeout("CountBacks34262(" + (secs+CountSteppers34262) + ")", SetTimeOutPeriods34262); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34262)=="undefined") BackColors34262 = ""; if (typeof(ForeColors34262)=="undefined") ForeColors34262= "white"; if (typeof(TargetDates34262)=="undefined") TargetDates34262 = "10/09/2026 9:00:00 AM"; if (typeof(DisplayFormats34262)=="undefined") DisplayFormats34262 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34262)=="undefined") CountActives34262 = true; if (typeof(FinishMessages34262)=="undefined") FinishMessages34262 = ""; if (typeof(CountSteppers34262)!="number") CountSteppers34262 = -1; if (typeof(LeadingZeros34262)=="undefined") LeadingZeros34262 = true; CountSteppers34262 = Math.ceil(CountSteppers34262); if (CountSteppers34262 == 0) CountActives34262 = false; var SetTimeOutPeriods34262 = (Math.abs(CountSteppers34262)-1)*1000 + 990; puti(BackColors34262, ForeColors34262); var dthens34262 = new Date(TargetDates34262); var dnows34262 = new Date("10/07/2026 11:50:34 AM"); if(CountSteppers34262>0) ddiffs34262 = new Date(dnows34262-dthens34262); else ddiffs34262 = new Date(dthens34262-dnows34262); gsecss34262 = Math.floor(ddiffs34262.valueOf()/1000); CountBacks34262(gsecss34262);