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 (LeadingZeros31614 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31614(secs) { if (secs < 0) { document.getElementById("cntdwns31614").innerHTML = FinishMessages31614; return; } DisplayStrs31614 = DisplayFormats31614.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31614 = DisplayStrs31614.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31614 = DisplayStrs31614.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31614 = DisplayStrs31614.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31614").innerHTML = DisplayStrs31614; if (CountActives31614) //alert(SetTimeOutPeriods31614); setTimeout("CountBacks31614(" + (secs+CountSteppers31614) + ")", SetTimeOutPeriods31614); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31614)=="undefined") BackColors31614 = ""; if (typeof(ForeColors31614)=="undefined") ForeColors31614= "white"; if (typeof(TargetDates31614)=="undefined") TargetDates31614 = "02/03/2025 10:00:00 PM"; if (typeof(DisplayFormats31614)=="undefined") DisplayFormats31614 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31614)=="undefined") CountActives31614 = true; if (typeof(FinishMessages31614)=="undefined") FinishMessages31614 = ""; if (typeof(CountSteppers31614)!="number") CountSteppers31614 = -1; if (typeof(LeadingZeros31614)=="undefined") LeadingZeros31614 = true; CountSteppers31614 = Math.ceil(CountSteppers31614); if (CountSteppers31614 == 0) CountActives31614 = false; var SetTimeOutPeriods31614 = (Math.abs(CountSteppers31614)-1)*1000 + 990; puti(BackColors31614, ForeColors31614); var dthens31614 = new Date(TargetDates31614); var dnows31614 = new Date("01/31/2025 10:57:42 AM"); if(CountSteppers31614>0) ddiffs31614 = new Date(dnows31614-dthens31614); else ddiffs31614 = new Date(dthens31614-dnows31614); gsecss31614 = Math.floor(ddiffs31614.valueOf()/1000); CountBacks31614(gsecss31614);