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 (LeadingZeros32144 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32144(secs) { if (secs < 0) { document.getElementById("cntdwns32144").innerHTML = FinishMessages32144; return; } DisplayStrs32144 = DisplayFormats32144.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32144 = DisplayStrs32144.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32144 = DisplayStrs32144.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32144 = DisplayStrs32144.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32144").innerHTML = DisplayStrs32144; if (CountActives32144) //alert(SetTimeOutPeriods32144); setTimeout("CountBacks32144(" + (secs+CountSteppers32144) + ")", SetTimeOutPeriods32144); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32144)=="undefined") BackColors32144 = ""; if (typeof(ForeColors32144)=="undefined") ForeColors32144= "white"; if (typeof(TargetDates32144)=="undefined") TargetDates32144 = "05/16/2025 10:00:00 PM"; if (typeof(DisplayFormats32144)=="undefined") DisplayFormats32144 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32144)=="undefined") CountActives32144 = true; if (typeof(FinishMessages32144)=="undefined") FinishMessages32144 = ""; if (typeof(CountSteppers32144)!="number") CountSteppers32144 = -1; if (typeof(LeadingZeros32144)=="undefined") LeadingZeros32144 = true; CountSteppers32144 = Math.ceil(CountSteppers32144); if (CountSteppers32144 == 0) CountActives32144 = false; var SetTimeOutPeriods32144 = (Math.abs(CountSteppers32144)-1)*1000 + 990; puti(BackColors32144, ForeColors32144); var dthens32144 = new Date(TargetDates32144); var dnows32144 = new Date("05/14/2025 2:45:22 PM"); if(CountSteppers32144>0) ddiffs32144 = new Date(dnows32144-dthens32144); else ddiffs32144 = new Date(dthens32144-dnows32144); gsecss32144 = Math.floor(ddiffs32144.valueOf()/1000); CountBacks32144(gsecss32144);