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 (LeadingZeros32777 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32777(secs) { if (secs < 0) { document.getElementById("cntdwns32777").innerHTML = FinishMessages32777; return; } DisplayStrs32777 = DisplayFormats32777.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32777 = DisplayStrs32777.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32777 = DisplayStrs32777.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32777 = DisplayStrs32777.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32777").innerHTML = DisplayStrs32777; if (CountActives32777) //alert(SetTimeOutPeriods32777); setTimeout("CountBacks32777(" + (secs+CountSteppers32777) + ")", SetTimeOutPeriods32777); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32777)=="undefined") BackColors32777 = ""; if (typeof(ForeColors32777)=="undefined") ForeColors32777= "white"; if (typeof(TargetDates32777)=="undefined") TargetDates32777 = "10/12/2025 10:00:00 PM"; if (typeof(DisplayFormats32777)=="undefined") DisplayFormats32777 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32777)=="undefined") CountActives32777 = true; if (typeof(FinishMessages32777)=="undefined") FinishMessages32777 = ""; if (typeof(CountSteppers32777)!="number") CountSteppers32777 = -1; if (typeof(LeadingZeros32777)=="undefined") LeadingZeros32777 = true; CountSteppers32777 = Math.ceil(CountSteppers32777); if (CountSteppers32777 == 0) CountActives32777 = false; var SetTimeOutPeriods32777 = (Math.abs(CountSteppers32777)-1)*1000 + 990; puti(BackColors32777, ForeColors32777); var dthens32777 = new Date(TargetDates32777); var dnows32777 = new Date("10/09/2025 3:24:57 PM"); if(CountSteppers32777>0) ddiffs32777 = new Date(dnows32777-dthens32777); else ddiffs32777 = new Date(dthens32777-dnows32777); gsecss32777 = Math.floor(ddiffs32777.valueOf()/1000); CountBacks32777(gsecss32777);