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 (LeadingZeros32403 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32403(secs) { if (secs < 0) { document.getElementById("cntdwns32403").innerHTML = FinishMessages32403; return; } DisplayStrs32403 = DisplayFormats32403.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32403 = DisplayStrs32403.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32403 = DisplayStrs32403.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32403 = DisplayStrs32403.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32403").innerHTML = DisplayStrs32403; if (CountActives32403) //alert(SetTimeOutPeriods32403); setTimeout("CountBacks32403(" + (secs+CountSteppers32403) + ")", SetTimeOutPeriods32403); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32403)=="undefined") BackColors32403 = ""; if (typeof(ForeColors32403)=="undefined") ForeColors32403= "white"; if (typeof(TargetDates32403)=="undefined") TargetDates32403 = "06/01/2025 9:00:00 PM"; if (typeof(DisplayFormats32403)=="undefined") DisplayFormats32403 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32403)=="undefined") CountActives32403 = true; if (typeof(FinishMessages32403)=="undefined") FinishMessages32403 = ""; if (typeof(CountSteppers32403)!="number") CountSteppers32403 = -1; if (typeof(LeadingZeros32403)=="undefined") LeadingZeros32403 = true; CountSteppers32403 = Math.ceil(CountSteppers32403); if (CountSteppers32403 == 0) CountActives32403 = false; var SetTimeOutPeriods32403 = (Math.abs(CountSteppers32403)-1)*1000 + 990; puti(BackColors32403, ForeColors32403); var dthens32403 = new Date(TargetDates32403); var dnows32403 = new Date("05/31/2025 5:02:10 PM"); if(CountSteppers32403>0) ddiffs32403 = new Date(dnows32403-dthens32403); else ddiffs32403 = new Date(dthens32403-dnows32403); gsecss32403 = Math.floor(ddiffs32403.valueOf()/1000); CountBacks32403(gsecss32403);