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 (LeadingZeros32497 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32497(secs) { if (secs < 0) { document.getElementById("cntdwns32497").innerHTML = FinishMessages32497; return; } DisplayStrs32497 = DisplayFormats32497.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32497 = DisplayStrs32497.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32497 = DisplayStrs32497.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32497 = DisplayStrs32497.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32497").innerHTML = DisplayStrs32497; if (CountActives32497) //alert(SetTimeOutPeriods32497); setTimeout("CountBacks32497(" + (secs+CountSteppers32497) + ")", SetTimeOutPeriods32497); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32497)=="undefined") BackColors32497 = ""; if (typeof(ForeColors32497)=="undefined") ForeColors32497= "white"; if (typeof(TargetDates32497)=="undefined") TargetDates32497 = "06/22/2025 10:00:00 PM"; if (typeof(DisplayFormats32497)=="undefined") DisplayFormats32497 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32497)=="undefined") CountActives32497 = true; if (typeof(FinishMessages32497)=="undefined") FinishMessages32497 = ""; if (typeof(CountSteppers32497)!="number") CountSteppers32497 = -1; if (typeof(LeadingZeros32497)=="undefined") LeadingZeros32497 = true; CountSteppers32497 = Math.ceil(CountSteppers32497); if (CountSteppers32497 == 0) CountActives32497 = false; var SetTimeOutPeriods32497 = (Math.abs(CountSteppers32497)-1)*1000 + 990; puti(BackColors32497, ForeColors32497); var dthens32497 = new Date(TargetDates32497); var dnows32497 = new Date("06/20/2025 8:53:20 AM"); if(CountSteppers32497>0) ddiffs32497 = new Date(dnows32497-dthens32497); else ddiffs32497 = new Date(dthens32497-dnows32497); gsecss32497 = Math.floor(ddiffs32497.valueOf()/1000); CountBacks32497(gsecss32497);