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 (LeadingZeros32972 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32972(secs) { if (secs < 0) { document.getElementById("cntdwns32972").innerHTML = FinishMessages32972; return; } DisplayStrs32972 = DisplayFormats32972.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32972 = DisplayStrs32972.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32972 = DisplayStrs32972.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32972 = DisplayStrs32972.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32972").innerHTML = DisplayStrs32972; if (CountActives32972) //alert(SetTimeOutPeriods32972); setTimeout("CountBacks32972(" + (secs+CountSteppers32972) + ")", SetTimeOutPeriods32972); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32972)=="undefined") BackColors32972 = ""; if (typeof(ForeColors32972)=="undefined") ForeColors32972= "white"; if (typeof(TargetDates32972)=="undefined") TargetDates32972 = "10/16/2025 10:00:00 PM"; if (typeof(DisplayFormats32972)=="undefined") DisplayFormats32972 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32972)=="undefined") CountActives32972 = true; if (typeof(FinishMessages32972)=="undefined") FinishMessages32972 = ""; if (typeof(CountSteppers32972)!="number") CountSteppers32972 = -1; if (typeof(LeadingZeros32972)=="undefined") LeadingZeros32972 = true; CountSteppers32972 = Math.ceil(CountSteppers32972); if (CountSteppers32972 == 0) CountActives32972 = false; var SetTimeOutPeriods32972 = (Math.abs(CountSteppers32972)-1)*1000 + 990; puti(BackColors32972, ForeColors32972); var dthens32972 = new Date(TargetDates32972); var dnows32972 = new Date("10/13/2025 8:33:32 PM"); if(CountSteppers32972>0) ddiffs32972 = new Date(dnows32972-dthens32972); else ddiffs32972 = new Date(dthens32972-dnows32972); gsecss32972 = Math.floor(ddiffs32972.valueOf()/1000); CountBacks32972(gsecss32972);