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 (LeadingZeros32813 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32813(secs) { if (secs < 0) { document.getElementById("cntdwns32813").innerHTML = FinishMessages32813; return; } DisplayStrs32813 = DisplayFormats32813.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32813 = DisplayStrs32813.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32813 = DisplayStrs32813.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32813 = DisplayStrs32813.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32813").innerHTML = DisplayStrs32813; if (CountActives32813) //alert(SetTimeOutPeriods32813); setTimeout("CountBacks32813(" + (secs+CountSteppers32813) + ")", SetTimeOutPeriods32813); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32813)=="undefined") BackColors32813 = ""; if (typeof(ForeColors32813)=="undefined") ForeColors32813= "white"; if (typeof(TargetDates32813)=="undefined") TargetDates32813 = "10/12/2025 10:00:00 PM"; if (typeof(DisplayFormats32813)=="undefined") DisplayFormats32813 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32813)=="undefined") CountActives32813 = true; if (typeof(FinishMessages32813)=="undefined") FinishMessages32813 = ""; if (typeof(CountSteppers32813)!="number") CountSteppers32813 = -1; if (typeof(LeadingZeros32813)=="undefined") LeadingZeros32813 = true; CountSteppers32813 = Math.ceil(CountSteppers32813); if (CountSteppers32813 == 0) CountActives32813 = false; var SetTimeOutPeriods32813 = (Math.abs(CountSteppers32813)-1)*1000 + 990; puti(BackColors32813, ForeColors32813); var dthens32813 = new Date(TargetDates32813); var dnows32813 = new Date("10/09/2025 3:36:23 PM"); if(CountSteppers32813>0) ddiffs32813 = new Date(dnows32813-dthens32813); else ddiffs32813 = new Date(dthens32813-dnows32813); gsecss32813 = Math.floor(ddiffs32813.valueOf()/1000); CountBacks32813(gsecss32813);