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 (LeadingZeros34286 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34286(secs) { if (secs < 0) { document.getElementById("cntdwns34286").innerHTML = FinishMessages34286; return; } DisplayStrs34286 = DisplayFormats34286.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34286 = DisplayStrs34286.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34286 = DisplayStrs34286.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34286 = DisplayStrs34286.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34286").innerHTML = DisplayStrs34286; if (CountActives34286) //alert(SetTimeOutPeriods34286); setTimeout("CountBacks34286(" + (secs+CountSteppers34286) + ")", SetTimeOutPeriods34286); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34286)=="undefined") BackColors34286 = ""; if (typeof(ForeColors34286)=="undefined") ForeColors34286= "white"; if (typeof(TargetDates34286)=="undefined") TargetDates34286 = "10/05/2026 2:00:00 PM"; if (typeof(DisplayFormats34286)=="undefined") DisplayFormats34286 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34286)=="undefined") CountActives34286 = true; if (typeof(FinishMessages34286)=="undefined") FinishMessages34286 = ""; if (typeof(CountSteppers34286)!="number") CountSteppers34286 = -1; if (typeof(LeadingZeros34286)=="undefined") LeadingZeros34286 = true; CountSteppers34286 = Math.ceil(CountSteppers34286); if (CountSteppers34286 == 0) CountActives34286 = false; var SetTimeOutPeriods34286 = (Math.abs(CountSteppers34286)-1)*1000 + 990; puti(BackColors34286, ForeColors34286); var dthens34286 = new Date(TargetDates34286); var dnows34286 = new Date("10/02/2026 6:29:17 PM"); if(CountSteppers34286>0) ddiffs34286 = new Date(dnows34286-dthens34286); else ddiffs34286 = new Date(dthens34286-dnows34286); gsecss34286 = Math.floor(ddiffs34286.valueOf()/1000); CountBacks34286(gsecss34286);