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 (LeadingZeros32409 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32409(secs) { if (secs < 0) { document.getElementById("cntdwns32409").innerHTML = FinishMessages32409; return; } DisplayStrs32409 = DisplayFormats32409.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32409 = DisplayStrs32409.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32409 = DisplayStrs32409.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32409 = DisplayStrs32409.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32409").innerHTML = DisplayStrs32409; if (CountActives32409) //alert(SetTimeOutPeriods32409); setTimeout("CountBacks32409(" + (secs+CountSteppers32409) + ")", SetTimeOutPeriods32409); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32409)=="undefined") BackColors32409 = ""; if (typeof(ForeColors32409)=="undefined") ForeColors32409= "white"; if (typeof(TargetDates32409)=="undefined") TargetDates32409 = "06/21/2025 10:00:00 PM"; if (typeof(DisplayFormats32409)=="undefined") DisplayFormats32409 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32409)=="undefined") CountActives32409 = true; if (typeof(FinishMessages32409)=="undefined") FinishMessages32409 = ""; if (typeof(CountSteppers32409)!="number") CountSteppers32409 = -1; if (typeof(LeadingZeros32409)=="undefined") LeadingZeros32409 = true; CountSteppers32409 = Math.ceil(CountSteppers32409); if (CountSteppers32409 == 0) CountActives32409 = false; var SetTimeOutPeriods32409 = (Math.abs(CountSteppers32409)-1)*1000 + 990; puti(BackColors32409, ForeColors32409); var dthens32409 = new Date(TargetDates32409); var dnows32409 = new Date("06/18/2025 11:13:32 AM"); if(CountSteppers32409>0) ddiffs32409 = new Date(dnows32409-dthens32409); else ddiffs32409 = new Date(dthens32409-dnows32409); gsecss32409 = Math.floor(ddiffs32409.valueOf()/1000); CountBacks32409(gsecss32409);