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 (LeadingZeros32240 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32240(secs) { if (secs < 0) { document.getElementById("cntdwns32240").innerHTML = FinishMessages32240; return; } DisplayStrs32240 = DisplayFormats32240.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32240 = DisplayStrs32240.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32240 = DisplayStrs32240.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32240 = DisplayStrs32240.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32240").innerHTML = DisplayStrs32240; if (CountActives32240) //alert(SetTimeOutPeriods32240); setTimeout("CountBacks32240(" + (secs+CountSteppers32240) + ")", SetTimeOutPeriods32240); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32240)=="undefined") BackColors32240 = ""; if (typeof(ForeColors32240)=="undefined") ForeColors32240= "white"; if (typeof(TargetDates32240)=="undefined") TargetDates32240 = "06/21/2025 10:00:00 PM"; if (typeof(DisplayFormats32240)=="undefined") DisplayFormats32240 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32240)=="undefined") CountActives32240 = true; if (typeof(FinishMessages32240)=="undefined") FinishMessages32240 = ""; if (typeof(CountSteppers32240)!="number") CountSteppers32240 = -1; if (typeof(LeadingZeros32240)=="undefined") LeadingZeros32240 = true; CountSteppers32240 = Math.ceil(CountSteppers32240); if (CountSteppers32240 == 0) CountActives32240 = false; var SetTimeOutPeriods32240 = (Math.abs(CountSteppers32240)-1)*1000 + 990; puti(BackColors32240, ForeColors32240); var dthens32240 = new Date(TargetDates32240); var dnows32240 = new Date("06/19/2025 6:54:44 AM"); if(CountSteppers32240>0) ddiffs32240 = new Date(dnows32240-dthens32240); else ddiffs32240 = new Date(dthens32240-dnows32240); gsecss32240 = Math.floor(ddiffs32240.valueOf()/1000); CountBacks32240(gsecss32240);