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 (LeadingZeros32746 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32746(secs) { if (secs < 0) { document.getElementById("cntdwns32746").innerHTML = FinishMessages32746; return; } DisplayStrs32746 = DisplayFormats32746.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32746 = DisplayStrs32746.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32746 = DisplayStrs32746.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32746 = DisplayStrs32746.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32746").innerHTML = DisplayStrs32746; if (CountActives32746) //alert(SetTimeOutPeriods32746); setTimeout("CountBacks32746(" + (secs+CountSteppers32746) + ")", SetTimeOutPeriods32746); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32746)=="undefined") BackColors32746 = ""; if (typeof(ForeColors32746)=="undefined") ForeColors32746= "white"; if (typeof(TargetDates32746)=="undefined") TargetDates32746 = "10/11/2025 10:00:00 PM"; if (typeof(DisplayFormats32746)=="undefined") DisplayFormats32746 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32746)=="undefined") CountActives32746 = true; if (typeof(FinishMessages32746)=="undefined") FinishMessages32746 = ""; if (typeof(CountSteppers32746)!="number") CountSteppers32746 = -1; if (typeof(LeadingZeros32746)=="undefined") LeadingZeros32746 = true; CountSteppers32746 = Math.ceil(CountSteppers32746); if (CountSteppers32746 == 0) CountActives32746 = false; var SetTimeOutPeriods32746 = (Math.abs(CountSteppers32746)-1)*1000 + 990; puti(BackColors32746, ForeColors32746); var dthens32746 = new Date(TargetDates32746); var dnows32746 = new Date("10/09/2025 3:24:56 PM"); if(CountSteppers32746>0) ddiffs32746 = new Date(dnows32746-dthens32746); else ddiffs32746 = new Date(dthens32746-dnows32746); gsecss32746 = Math.floor(ddiffs32746.valueOf()/1000); CountBacks32746(gsecss32746);