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 (LeadingZeros32487 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32487(secs) { if (secs < 0) { document.getElementById("cntdwns32487").innerHTML = FinishMessages32487; return; } DisplayStrs32487 = DisplayFormats32487.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32487 = DisplayStrs32487.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32487 = DisplayStrs32487.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32487 = DisplayStrs32487.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32487").innerHTML = DisplayStrs32487; if (CountActives32487) //alert(SetTimeOutPeriods32487); setTimeout("CountBacks32487(" + (secs+CountSteppers32487) + ")", SetTimeOutPeriods32487); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32487)=="undefined") BackColors32487 = ""; if (typeof(ForeColors32487)=="undefined") ForeColors32487= "white"; if (typeof(TargetDates32487)=="undefined") TargetDates32487 = "06/24/2025 10:00:00 PM"; if (typeof(DisplayFormats32487)=="undefined") DisplayFormats32487 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32487)=="undefined") CountActives32487 = true; if (typeof(FinishMessages32487)=="undefined") FinishMessages32487 = ""; if (typeof(CountSteppers32487)!="number") CountSteppers32487 = -1; if (typeof(LeadingZeros32487)=="undefined") LeadingZeros32487 = true; CountSteppers32487 = Math.ceil(CountSteppers32487); if (CountSteppers32487 == 0) CountActives32487 = false; var SetTimeOutPeriods32487 = (Math.abs(CountSteppers32487)-1)*1000 + 990; puti(BackColors32487, ForeColors32487); var dthens32487 = new Date(TargetDates32487); var dnows32487 = new Date("06/21/2025 10:01:44 PM"); if(CountSteppers32487>0) ddiffs32487 = new Date(dnows32487-dthens32487); else ddiffs32487 = new Date(dthens32487-dnows32487); gsecss32487 = Math.floor(ddiffs32487.valueOf()/1000); CountBacks32487(gsecss32487);