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 (LeadingZeros32870 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32870(secs) { if (secs < 0) { document.getElementById("cntdwns32870").innerHTML = FinishMessages32870; return; } DisplayStrs32870 = DisplayFormats32870.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32870 = DisplayStrs32870.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32870 = DisplayStrs32870.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32870 = DisplayStrs32870.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32870").innerHTML = DisplayStrs32870; if (CountActives32870) //alert(SetTimeOutPeriods32870); setTimeout("CountBacks32870(" + (secs+CountSteppers32870) + ")", SetTimeOutPeriods32870); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32870)=="undefined") BackColors32870 = ""; if (typeof(ForeColors32870)=="undefined") ForeColors32870= "white"; if (typeof(TargetDates32870)=="undefined") TargetDates32870 = "10/06/2025 10:00:00 PM"; if (typeof(DisplayFormats32870)=="undefined") DisplayFormats32870 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32870)=="undefined") CountActives32870 = true; if (typeof(FinishMessages32870)=="undefined") FinishMessages32870 = ""; if (typeof(CountSteppers32870)!="number") CountSteppers32870 = -1; if (typeof(LeadingZeros32870)=="undefined") LeadingZeros32870 = true; CountSteppers32870 = Math.ceil(CountSteppers32870); if (CountSteppers32870 == 0) CountActives32870 = false; var SetTimeOutPeriods32870 = (Math.abs(CountSteppers32870)-1)*1000 + 990; puti(BackColors32870, ForeColors32870); var dthens32870 = new Date(TargetDates32870); var dnows32870 = new Date("10/03/2025 11:10:39 PM"); if(CountSteppers32870>0) ddiffs32870 = new Date(dnows32870-dthens32870); else ddiffs32870 = new Date(dthens32870-dnows32870); gsecss32870 = Math.floor(ddiffs32870.valueOf()/1000); CountBacks32870(gsecss32870);