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 (LeadingZeros32491 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32491(secs) { if (secs < 0) { document.getElementById("cntdwns32491").innerHTML = FinishMessages32491; return; } DisplayStrs32491 = DisplayFormats32491.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32491 = DisplayStrs32491.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32491 = DisplayStrs32491.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32491 = DisplayStrs32491.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32491").innerHTML = DisplayStrs32491; if (CountActives32491) //alert(SetTimeOutPeriods32491); setTimeout("CountBacks32491(" + (secs+CountSteppers32491) + ")", SetTimeOutPeriods32491); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32491)=="undefined") BackColors32491 = ""; if (typeof(ForeColors32491)=="undefined") ForeColors32491= "white"; if (typeof(TargetDates32491)=="undefined") TargetDates32491 = "06/29/2025 10:00:00 PM"; if (typeof(DisplayFormats32491)=="undefined") DisplayFormats32491 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32491)=="undefined") CountActives32491 = true; if (typeof(FinishMessages32491)=="undefined") FinishMessages32491 = ""; if (typeof(CountSteppers32491)!="number") CountSteppers32491 = -1; if (typeof(LeadingZeros32491)=="undefined") LeadingZeros32491 = true; CountSteppers32491 = Math.ceil(CountSteppers32491); if (CountSteppers32491 == 0) CountActives32491 = false; var SetTimeOutPeriods32491 = (Math.abs(CountSteppers32491)-1)*1000 + 990; puti(BackColors32491, ForeColors32491); var dthens32491 = new Date(TargetDates32491); var dnows32491 = new Date("06/26/2025 7:13:05 AM"); if(CountSteppers32491>0) ddiffs32491 = new Date(dnows32491-dthens32491); else ddiffs32491 = new Date(dthens32491-dnows32491); gsecss32491 = Math.floor(ddiffs32491.valueOf()/1000); CountBacks32491(gsecss32491);