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 (LeadingZeros34183 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34183(secs) { if (secs < 0) { document.getElementById("cntdwns34183").innerHTML = FinishMessages34183; return; } DisplayStrs34183 = DisplayFormats34183.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34183 = DisplayStrs34183.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34183 = DisplayStrs34183.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34183 = DisplayStrs34183.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34183").innerHTML = DisplayStrs34183; if (CountActives34183) //alert(SetTimeOutPeriods34183); setTimeout("CountBacks34183(" + (secs+CountSteppers34183) + ")", SetTimeOutPeriods34183); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34183)=="undefined") BackColors34183 = ""; if (typeof(ForeColors34183)=="undefined") ForeColors34183= "white"; if (typeof(TargetDates34183)=="undefined") TargetDates34183 = "10/03/2026 11:00:00 PM"; if (typeof(DisplayFormats34183)=="undefined") DisplayFormats34183 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34183)=="undefined") CountActives34183 = true; if (typeof(FinishMessages34183)=="undefined") FinishMessages34183 = ""; if (typeof(CountSteppers34183)!="number") CountSteppers34183 = -1; if (typeof(LeadingZeros34183)=="undefined") LeadingZeros34183 = true; CountSteppers34183 = Math.ceil(CountSteppers34183); if (CountSteppers34183 == 0) CountActives34183 = false; var SetTimeOutPeriods34183 = (Math.abs(CountSteppers34183)-1)*1000 + 990; puti(BackColors34183, ForeColors34183); var dthens34183 = new Date(TargetDates34183); var dnows34183 = new Date("10/02/2026 9:25:54 AM"); if(CountSteppers34183>0) ddiffs34183 = new Date(dnows34183-dthens34183); else ddiffs34183 = new Date(dthens34183-dnows34183); gsecss34183 = Math.floor(ddiffs34183.valueOf()/1000); CountBacks34183(gsecss34183);