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 (LeadingZeros34421 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34421(secs) { if (secs < 0) { document.getElementById("cntdwns34421").innerHTML = FinishMessages34421; return; } DisplayStrs34421 = DisplayFormats34421.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34421 = DisplayStrs34421.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34421 = DisplayStrs34421.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34421 = DisplayStrs34421.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34421").innerHTML = DisplayStrs34421; if (CountActives34421) //alert(SetTimeOutPeriods34421); setTimeout("CountBacks34421(" + (secs+CountSteppers34421) + ")", SetTimeOutPeriods34421); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34421)=="undefined") BackColors34421 = ""; if (typeof(ForeColors34421)=="undefined") ForeColors34421= "white"; if (typeof(TargetDates34421)=="undefined") TargetDates34421 = "11/04/2026 3:00:00 PM"; if (typeof(DisplayFormats34421)=="undefined") DisplayFormats34421 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34421)=="undefined") CountActives34421 = true; if (typeof(FinishMessages34421)=="undefined") FinishMessages34421 = ""; if (typeof(CountSteppers34421)!="number") CountSteppers34421 = -1; if (typeof(LeadingZeros34421)=="undefined") LeadingZeros34421 = true; CountSteppers34421 = Math.ceil(CountSteppers34421); if (CountSteppers34421 == 0) CountActives34421 = false; var SetTimeOutPeriods34421 = (Math.abs(CountSteppers34421)-1)*1000 + 990; puti(BackColors34421, ForeColors34421); var dthens34421 = new Date(TargetDates34421); var dnows34421 = new Date("11/01/2026 5:26:37 AM"); if(CountSteppers34421>0) ddiffs34421 = new Date(dnows34421-dthens34421); else ddiffs34421 = new Date(dthens34421-dnows34421); gsecss34421 = Math.floor(ddiffs34421.valueOf()/1000); CountBacks34421(gsecss34421);