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 (LeadingZeros31797 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31797(secs) { if (secs < 0) { document.getElementById("cntdwns31797").innerHTML = FinishMessages31797; return; } DisplayStrs31797 = DisplayFormats31797.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31797 = DisplayStrs31797.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31797 = DisplayStrs31797.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31797 = DisplayStrs31797.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31797").innerHTML = DisplayStrs31797; if (CountActives31797) //alert(SetTimeOutPeriods31797); setTimeout("CountBacks31797(" + (secs+CountSteppers31797) + ")", SetTimeOutPeriods31797); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31797)=="undefined") BackColors31797 = ""; if (typeof(ForeColors31797)=="undefined") ForeColors31797= "white"; if (typeof(TargetDates31797)=="undefined") TargetDates31797 = "03/05/2025 10:00:00 PM"; if (typeof(DisplayFormats31797)=="undefined") DisplayFormats31797 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31797)=="undefined") CountActives31797 = true; if (typeof(FinishMessages31797)=="undefined") FinishMessages31797 = ""; if (typeof(CountSteppers31797)!="number") CountSteppers31797 = -1; if (typeof(LeadingZeros31797)=="undefined") LeadingZeros31797 = true; CountSteppers31797 = Math.ceil(CountSteppers31797); if (CountSteppers31797 == 0) CountActives31797 = false; var SetTimeOutPeriods31797 = (Math.abs(CountSteppers31797)-1)*1000 + 990; puti(BackColors31797, ForeColors31797); var dthens31797 = new Date(TargetDates31797); var dnows31797 = new Date("03/03/2025 3:14:33 PM"); if(CountSteppers31797>0) ddiffs31797 = new Date(dnows31797-dthens31797); else ddiffs31797 = new Date(dthens31797-dnows31797); gsecss31797 = Math.floor(ddiffs31797.valueOf()/1000); CountBacks31797(gsecss31797);