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 (LeadingZeros31808 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31808(secs) { if (secs < 0) { document.getElementById("cntdwns31808").innerHTML = FinishMessages31808; return; } DisplayStrs31808 = DisplayFormats31808.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31808 = DisplayStrs31808.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31808 = DisplayStrs31808.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31808 = DisplayStrs31808.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31808").innerHTML = DisplayStrs31808; if (CountActives31808) //alert(SetTimeOutPeriods31808); setTimeout("CountBacks31808(" + (secs+CountSteppers31808) + ")", SetTimeOutPeriods31808); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31808)=="undefined") BackColors31808 = ""; if (typeof(ForeColors31808)=="undefined") ForeColors31808= "white"; if (typeof(TargetDates31808)=="undefined") TargetDates31808 = "02/10/2025 10:00:00 PM"; if (typeof(DisplayFormats31808)=="undefined") DisplayFormats31808 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31808)=="undefined") CountActives31808 = true; if (typeof(FinishMessages31808)=="undefined") FinishMessages31808 = ""; if (typeof(CountSteppers31808)!="number") CountSteppers31808 = -1; if (typeof(LeadingZeros31808)=="undefined") LeadingZeros31808 = true; CountSteppers31808 = Math.ceil(CountSteppers31808); if (CountSteppers31808 == 0) CountActives31808 = false; var SetTimeOutPeriods31808 = (Math.abs(CountSteppers31808)-1)*1000 + 990; puti(BackColors31808, ForeColors31808); var dthens31808 = new Date(TargetDates31808); var dnows31808 = new Date("03/12/2025 5:37:28 AM"); if(CountSteppers31808>0) ddiffs31808 = new Date(dnows31808-dthens31808); else ddiffs31808 = new Date(dthens31808-dnows31808); gsecss31808 = Math.floor(ddiffs31808.valueOf()/1000); CountBacks31808(gsecss31808);