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 (LeadingZeros32888 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32888(secs) { if (secs < 0) { document.getElementById("cntdwns32888").innerHTML = FinishMessages32888; return; } DisplayStrs32888 = DisplayFormats32888.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32888 = DisplayStrs32888.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32888 = DisplayStrs32888.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32888 = DisplayStrs32888.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32888").innerHTML = DisplayStrs32888; if (CountActives32888) //alert(SetTimeOutPeriods32888); setTimeout("CountBacks32888(" + (secs+CountSteppers32888) + ")", SetTimeOutPeriods32888); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32888)=="undefined") BackColors32888 = ""; if (typeof(ForeColors32888)=="undefined") ForeColors32888= "white"; if (typeof(TargetDates32888)=="undefined") TargetDates32888 = "10/12/2025 10:00:00 PM"; if (typeof(DisplayFormats32888)=="undefined") DisplayFormats32888 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32888)=="undefined") CountActives32888 = true; if (typeof(FinishMessages32888)=="undefined") FinishMessages32888 = ""; if (typeof(CountSteppers32888)!="number") CountSteppers32888 = -1; if (typeof(LeadingZeros32888)=="undefined") LeadingZeros32888 = true; CountSteppers32888 = Math.ceil(CountSteppers32888); if (CountSteppers32888 == 0) CountActives32888 = false; var SetTimeOutPeriods32888 = (Math.abs(CountSteppers32888)-1)*1000 + 990; puti(BackColors32888, ForeColors32888); var dthens32888 = new Date(TargetDates32888); var dnows32888 = new Date("10/09/2025 3:24:57 PM"); if(CountSteppers32888>0) ddiffs32888 = new Date(dnows32888-dthens32888); else ddiffs32888 = new Date(dthens32888-dnows32888); gsecss32888 = Math.floor(ddiffs32888.valueOf()/1000); CountBacks32888(gsecss32888);