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 (LeadingZeros34240 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34240(secs) { if (secs < 0) { document.getElementById("cntdwns34240").innerHTML = FinishMessages34240; return; } DisplayStrs34240 = DisplayFormats34240.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34240 = DisplayStrs34240.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34240 = DisplayStrs34240.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34240 = DisplayStrs34240.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34240").innerHTML = DisplayStrs34240; if (CountActives34240) //alert(SetTimeOutPeriods34240); setTimeout("CountBacks34240(" + (secs+CountSteppers34240) + ")", SetTimeOutPeriods34240); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34240)=="undefined") BackColors34240 = ""; if (typeof(ForeColors34240)=="undefined") ForeColors34240= "white"; if (typeof(TargetDates34240)=="undefined") TargetDates34240 = "09/28/2026 11:00:00 PM"; if (typeof(DisplayFormats34240)=="undefined") DisplayFormats34240 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34240)=="undefined") CountActives34240 = true; if (typeof(FinishMessages34240)=="undefined") FinishMessages34240 = ""; if (typeof(CountSteppers34240)!="number") CountSteppers34240 = -1; if (typeof(LeadingZeros34240)=="undefined") LeadingZeros34240 = true; CountSteppers34240 = Math.ceil(CountSteppers34240); if (CountSteppers34240 == 0) CountActives34240 = false; var SetTimeOutPeriods34240 = (Math.abs(CountSteppers34240)-1)*1000 + 990; puti(BackColors34240, ForeColors34240); var dthens34240 = new Date(TargetDates34240); var dnows34240 = new Date("09/25/2026 6:48:19 PM"); if(CountSteppers34240>0) ddiffs34240 = new Date(dnows34240-dthens34240); else ddiffs34240 = new Date(dthens34240-dnows34240); gsecss34240 = Math.floor(ddiffs34240.valueOf()/1000); CountBacks34240(gsecss34240);