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 (LeadingZeros32210 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32210(secs) { if (secs < 0) { document.getElementById("cntdwns32210").innerHTML = FinishMessages32210; return; } DisplayStrs32210 = DisplayFormats32210.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32210 = DisplayStrs32210.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32210 = DisplayStrs32210.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32210 = DisplayStrs32210.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32210").innerHTML = DisplayStrs32210; if (CountActives32210) //alert(SetTimeOutPeriods32210); setTimeout("CountBacks32210(" + (secs+CountSteppers32210) + ")", SetTimeOutPeriods32210); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32210)=="undefined") BackColors32210 = ""; if (typeof(ForeColors32210)=="undefined") ForeColors32210= "white"; if (typeof(TargetDates32210)=="undefined") TargetDates32210 = "05/08/2025 10:00:00 PM"; if (typeof(DisplayFormats32210)=="undefined") DisplayFormats32210 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32210)=="undefined") CountActives32210 = true; if (typeof(FinishMessages32210)=="undefined") FinishMessages32210 = ""; if (typeof(CountSteppers32210)!="number") CountSteppers32210 = -1; if (typeof(LeadingZeros32210)=="undefined") LeadingZeros32210 = true; CountSteppers32210 = Math.ceil(CountSteppers32210); if (CountSteppers32210 == 0) CountActives32210 = false; var SetTimeOutPeriods32210 = (Math.abs(CountSteppers32210)-1)*1000 + 990; puti(BackColors32210, ForeColors32210); var dthens32210 = new Date(TargetDates32210); var dnows32210 = new Date("05/06/2025 11:30:47 AM"); if(CountSteppers32210>0) ddiffs32210 = new Date(dnows32210-dthens32210); else ddiffs32210 = new Date(dthens32210-dnows32210); gsecss32210 = Math.floor(ddiffs32210.valueOf()/1000); CountBacks32210(gsecss32210);