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 (LeadingZeros31747 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31747(secs) { if (secs < 0) { document.getElementById("cntdwns31747").innerHTML = FinishMessages31747; return; } DisplayStrs31747 = DisplayFormats31747.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31747 = DisplayStrs31747.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31747 = DisplayStrs31747.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31747 = DisplayStrs31747.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31747").innerHTML = DisplayStrs31747; if (CountActives31747) //alert(SetTimeOutPeriods31747); setTimeout("CountBacks31747(" + (secs+CountSteppers31747) + ")", SetTimeOutPeriods31747); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31747)=="undefined") BackColors31747 = ""; if (typeof(ForeColors31747)=="undefined") ForeColors31747= "white"; if (typeof(TargetDates31747)=="undefined") TargetDates31747 = "02/07/2025 10:00:00 PM"; if (typeof(DisplayFormats31747)=="undefined") DisplayFormats31747 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31747)=="undefined") CountActives31747 = true; if (typeof(FinishMessages31747)=="undefined") FinishMessages31747 = ""; if (typeof(CountSteppers31747)!="number") CountSteppers31747 = -1; if (typeof(LeadingZeros31747)=="undefined") LeadingZeros31747 = true; CountSteppers31747 = Math.ceil(CountSteppers31747); if (CountSteppers31747 == 0) CountActives31747 = false; var SetTimeOutPeriods31747 = (Math.abs(CountSteppers31747)-1)*1000 + 990; puti(BackColors31747, ForeColors31747); var dthens31747 = new Date(TargetDates31747); var dnows31747 = new Date("02/05/2025 7:51:56 AM"); if(CountSteppers31747>0) ddiffs31747 = new Date(dnows31747-dthens31747); else ddiffs31747 = new Date(dthens31747-dnows31747); gsecss31747 = Math.floor(ddiffs31747.valueOf()/1000); CountBacks31747(gsecss31747);