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 (LeadingZeros34252 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34252(secs) { if (secs < 0) { document.getElementById("cntdwns34252").innerHTML = FinishMessages34252; return; } DisplayStrs34252 = DisplayFormats34252.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34252 = DisplayStrs34252.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34252 = DisplayStrs34252.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34252 = DisplayStrs34252.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34252").innerHTML = DisplayStrs34252; if (CountActives34252) //alert(SetTimeOutPeriods34252); setTimeout("CountBacks34252(" + (secs+CountSteppers34252) + ")", SetTimeOutPeriods34252); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34252)=="undefined") BackColors34252 = ""; if (typeof(ForeColors34252)=="undefined") ForeColors34252= "white"; if (typeof(TargetDates34252)=="undefined") TargetDates34252 = "10/08/2026 11:00:00 PM"; if (typeof(DisplayFormats34252)=="undefined") DisplayFormats34252 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34252)=="undefined") CountActives34252 = true; if (typeof(FinishMessages34252)=="undefined") FinishMessages34252 = ""; if (typeof(CountSteppers34252)!="number") CountSteppers34252 = -1; if (typeof(LeadingZeros34252)=="undefined") LeadingZeros34252 = true; CountSteppers34252 = Math.ceil(CountSteppers34252); if (CountSteppers34252 == 0) CountActives34252 = false; var SetTimeOutPeriods34252 = (Math.abs(CountSteppers34252)-1)*1000 + 990; puti(BackColors34252, ForeColors34252); var dthens34252 = new Date(TargetDates34252); var dnows34252 = new Date("10/05/2026 9:12:45 PM"); if(CountSteppers34252>0) ddiffs34252 = new Date(dnows34252-dthens34252); else ddiffs34252 = new Date(dthens34252-dnows34252); gsecss34252 = Math.floor(ddiffs34252.valueOf()/1000); CountBacks34252(gsecss34252);