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 (LeadingZeros34255 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34255(secs) { if (secs < 0) { document.getElementById("cntdwns34255").innerHTML = FinishMessages34255; return; } DisplayStrs34255 = DisplayFormats34255.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34255 = DisplayStrs34255.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34255 = DisplayStrs34255.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34255 = DisplayStrs34255.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34255").innerHTML = DisplayStrs34255; if (CountActives34255) //alert(SetTimeOutPeriods34255); setTimeout("CountBacks34255(" + (secs+CountSteppers34255) + ")", SetTimeOutPeriods34255); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34255)=="undefined") BackColors34255 = ""; if (typeof(ForeColors34255)=="undefined") ForeColors34255= "white"; if (typeof(TargetDates34255)=="undefined") TargetDates34255 = "09/18/2026 11:00:00 PM"; if (typeof(DisplayFormats34255)=="undefined") DisplayFormats34255 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34255)=="undefined") CountActives34255 = true; if (typeof(FinishMessages34255)=="undefined") FinishMessages34255 = ""; if (typeof(CountSteppers34255)!="number") CountSteppers34255 = -1; if (typeof(LeadingZeros34255)=="undefined") LeadingZeros34255 = true; CountSteppers34255 = Math.ceil(CountSteppers34255); if (CountSteppers34255 == 0) CountActives34255 = false; var SetTimeOutPeriods34255 = (Math.abs(CountSteppers34255)-1)*1000 + 990; puti(BackColors34255, ForeColors34255); var dthens34255 = new Date(TargetDates34255); var dnows34255 = new Date("09/17/2026 5:07:07 PM"); if(CountSteppers34255>0) ddiffs34255 = new Date(dnows34255-dthens34255); else ddiffs34255 = new Date(dthens34255-dnows34255); gsecss34255 = Math.floor(ddiffs34255.valueOf()/1000); CountBacks34255(gsecss34255);