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 (LeadingZeros32488 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32488(secs) { if (secs < 0) { document.getElementById("cntdwns32488").innerHTML = FinishMessages32488; return; } DisplayStrs32488 = DisplayFormats32488.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32488 = DisplayStrs32488.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32488 = DisplayStrs32488.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32488 = DisplayStrs32488.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32488").innerHTML = DisplayStrs32488; if (CountActives32488) //alert(SetTimeOutPeriods32488); setTimeout("CountBacks32488(" + (secs+CountSteppers32488) + ")", SetTimeOutPeriods32488); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32488)=="undefined") BackColors32488 = ""; if (typeof(ForeColors32488)=="undefined") ForeColors32488= "white"; if (typeof(TargetDates32488)=="undefined") TargetDates32488 = "08/20/2025 10:00:00 PM"; if (typeof(DisplayFormats32488)=="undefined") DisplayFormats32488 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32488)=="undefined") CountActives32488 = true; if (typeof(FinishMessages32488)=="undefined") FinishMessages32488 = ""; if (typeof(CountSteppers32488)!="number") CountSteppers32488 = -1; if (typeof(LeadingZeros32488)=="undefined") LeadingZeros32488 = true; CountSteppers32488 = Math.ceil(CountSteppers32488); if (CountSteppers32488 == 0) CountActives32488 = false; var SetTimeOutPeriods32488 = (Math.abs(CountSteppers32488)-1)*1000 + 990; puti(BackColors32488, ForeColors32488); var dthens32488 = new Date(TargetDates32488); var dnows32488 = new Date("07/02/2025 12:52:40 PM"); if(CountSteppers32488>0) ddiffs32488 = new Date(dnows32488-dthens32488); else ddiffs32488 = new Date(dthens32488-dnows32488); gsecss32488 = Math.floor(ddiffs32488.valueOf()/1000); CountBacks32488(gsecss32488);