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 (LeadingZeros34422 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34422(secs) { if (secs < 0) { document.getElementById("cntdwns34422").innerHTML = FinishMessages34422; return; } DisplayStrs34422 = DisplayFormats34422.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34422 = DisplayStrs34422.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34422 = DisplayStrs34422.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34422 = DisplayStrs34422.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34422").innerHTML = DisplayStrs34422; if (CountActives34422) //alert(SetTimeOutPeriods34422); setTimeout("CountBacks34422(" + (secs+CountSteppers34422) + ")", SetTimeOutPeriods34422); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34422)=="undefined") BackColors34422 = ""; if (typeof(ForeColors34422)=="undefined") ForeColors34422= "white"; if (typeof(TargetDates34422)=="undefined") TargetDates34422 = "11/04/2026 3:00:00 PM"; if (typeof(DisplayFormats34422)=="undefined") DisplayFormats34422 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34422)=="undefined") CountActives34422 = true; if (typeof(FinishMessages34422)=="undefined") FinishMessages34422 = ""; if (typeof(CountSteppers34422)!="number") CountSteppers34422 = -1; if (typeof(LeadingZeros34422)=="undefined") LeadingZeros34422 = true; CountSteppers34422 = Math.ceil(CountSteppers34422); if (CountSteppers34422 == 0) CountActives34422 = false; var SetTimeOutPeriods34422 = (Math.abs(CountSteppers34422)-1)*1000 + 990; puti(BackColors34422, ForeColors34422); var dthens34422 = new Date(TargetDates34422); var dnows34422 = new Date("11/01/2026 5:25:34 AM"); if(CountSteppers34422>0) ddiffs34422 = new Date(dnows34422-dthens34422); else ddiffs34422 = new Date(dthens34422-dnows34422); gsecss34422 = Math.floor(ddiffs34422.valueOf()/1000); CountBacks34422(gsecss34422);