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 (LeadingZeros31796 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31796(secs) { if (secs < 0) { document.getElementById("cntdwns31796").innerHTML = FinishMessages31796; return; } DisplayStrs31796 = DisplayFormats31796.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31796 = DisplayStrs31796.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31796 = DisplayStrs31796.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31796 = DisplayStrs31796.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31796").innerHTML = DisplayStrs31796; if (CountActives31796) //alert(SetTimeOutPeriods31796); setTimeout("CountBacks31796(" + (secs+CountSteppers31796) + ")", SetTimeOutPeriods31796); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31796)=="undefined") BackColors31796 = ""; if (typeof(ForeColors31796)=="undefined") ForeColors31796= "white"; if (typeof(TargetDates31796)=="undefined") TargetDates31796 = "02/03/2025 10:00:00 PM"; if (typeof(DisplayFormats31796)=="undefined") DisplayFormats31796 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31796)=="undefined") CountActives31796 = true; if (typeof(FinishMessages31796)=="undefined") FinishMessages31796 = ""; if (typeof(CountSteppers31796)!="number") CountSteppers31796 = -1; if (typeof(LeadingZeros31796)=="undefined") LeadingZeros31796 = true; CountSteppers31796 = Math.ceil(CountSteppers31796); if (CountSteppers31796 == 0) CountActives31796 = false; var SetTimeOutPeriods31796 = (Math.abs(CountSteppers31796)-1)*1000 + 990; puti(BackColors31796, ForeColors31796); var dthens31796 = new Date(TargetDates31796); var dnows31796 = new Date("02/01/2025 4:53:53 AM"); if(CountSteppers31796>0) ddiffs31796 = new Date(dnows31796-dthens31796); else ddiffs31796 = new Date(dthens31796-dnows31796); gsecss31796 = Math.floor(ddiffs31796.valueOf()/1000); CountBacks31796(gsecss31796);