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 (LeadingZeros32779 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32779(secs) { if (secs < 0) { document.getElementById("cntdwns32779").innerHTML = FinishMessages32779; return; } DisplayStrs32779 = DisplayFormats32779.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32779 = DisplayStrs32779.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32779 = DisplayStrs32779.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32779 = DisplayStrs32779.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32779").innerHTML = DisplayStrs32779; if (CountActives32779) //alert(SetTimeOutPeriods32779); setTimeout("CountBacks32779(" + (secs+CountSteppers32779) + ")", SetTimeOutPeriods32779); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32779)=="undefined") BackColors32779 = ""; if (typeof(ForeColors32779)=="undefined") ForeColors32779= "white"; if (typeof(TargetDates32779)=="undefined") TargetDates32779 = "09/24/2025 10:00:00 PM"; if (typeof(DisplayFormats32779)=="undefined") DisplayFormats32779 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32779)=="undefined") CountActives32779 = true; if (typeof(FinishMessages32779)=="undefined") FinishMessages32779 = ""; if (typeof(CountSteppers32779)!="number") CountSteppers32779 = -1; if (typeof(LeadingZeros32779)=="undefined") LeadingZeros32779 = true; CountSteppers32779 = Math.ceil(CountSteppers32779); if (CountSteppers32779 == 0) CountActives32779 = false; var SetTimeOutPeriods32779 = (Math.abs(CountSteppers32779)-1)*1000 + 990; puti(BackColors32779, ForeColors32779); var dthens32779 = new Date(TargetDates32779); var dnows32779 = new Date("09/22/2025 10:00:49 PM"); if(CountSteppers32779>0) ddiffs32779 = new Date(dnows32779-dthens32779); else ddiffs32779 = new Date(dthens32779-dnows32779); gsecss32779 = Math.floor(ddiffs32779.valueOf()/1000); CountBacks32779(gsecss32779);