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 (LeadingZeros32895 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32895(secs) { if (secs < 0) { document.getElementById("cntdwns32895").innerHTML = FinishMessages32895; return; } DisplayStrs32895 = DisplayFormats32895.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32895 = DisplayStrs32895.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32895 = DisplayStrs32895.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32895 = DisplayStrs32895.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32895").innerHTML = DisplayStrs32895; if (CountActives32895) //alert(SetTimeOutPeriods32895); setTimeout("CountBacks32895(" + (secs+CountSteppers32895) + ")", SetTimeOutPeriods32895); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32895)=="undefined") BackColors32895 = ""; if (typeof(ForeColors32895)=="undefined") ForeColors32895= "white"; if (typeof(TargetDates32895)=="undefined") TargetDates32895 = "10/11/2025 10:00:00 PM"; if (typeof(DisplayFormats32895)=="undefined") DisplayFormats32895 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32895)=="undefined") CountActives32895 = true; if (typeof(FinishMessages32895)=="undefined") FinishMessages32895 = ""; if (typeof(CountSteppers32895)!="number") CountSteppers32895 = -1; if (typeof(LeadingZeros32895)=="undefined") LeadingZeros32895 = true; CountSteppers32895 = Math.ceil(CountSteppers32895); if (CountSteppers32895 == 0) CountActives32895 = false; var SetTimeOutPeriods32895 = (Math.abs(CountSteppers32895)-1)*1000 + 990; puti(BackColors32895, ForeColors32895); var dthens32895 = new Date(TargetDates32895); var dnows32895 = new Date("10/09/2025 1:55:17 AM"); if(CountSteppers32895>0) ddiffs32895 = new Date(dnows32895-dthens32895); else ddiffs32895 = new Date(dthens32895-dnows32895); gsecss32895 = Math.floor(ddiffs32895.valueOf()/1000); CountBacks32895(gsecss32895);