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 (LeadingZeros31783 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31783(secs) { if (secs < 0) { document.getElementById("cntdwns31783").innerHTML = FinishMessages31783; return; } DisplayStrs31783 = DisplayFormats31783.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31783 = DisplayStrs31783.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31783 = DisplayStrs31783.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31783 = DisplayStrs31783.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31783").innerHTML = DisplayStrs31783; if (CountActives31783) //alert(SetTimeOutPeriods31783); setTimeout("CountBacks31783(" + (secs+CountSteppers31783) + ")", SetTimeOutPeriods31783); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31783)=="undefined") BackColors31783 = ""; if (typeof(ForeColors31783)=="undefined") ForeColors31783= "white"; if (typeof(TargetDates31783)=="undefined") TargetDates31783 = "02/02/2025 10:00:00 PM"; if (typeof(DisplayFormats31783)=="undefined") DisplayFormats31783 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31783)=="undefined") CountActives31783 = true; if (typeof(FinishMessages31783)=="undefined") FinishMessages31783 = ""; if (typeof(CountSteppers31783)!="number") CountSteppers31783 = -1; if (typeof(LeadingZeros31783)=="undefined") LeadingZeros31783 = true; CountSteppers31783 = Math.ceil(CountSteppers31783); if (CountSteppers31783 == 0) CountActives31783 = false; var SetTimeOutPeriods31783 = (Math.abs(CountSteppers31783)-1)*1000 + 990; puti(BackColors31783, ForeColors31783); var dthens31783 = new Date(TargetDates31783); var dnows31783 = new Date("01/30/2025 6:34:36 PM"); if(CountSteppers31783>0) ddiffs31783 = new Date(dnows31783-dthens31783); else ddiffs31783 = new Date(dthens31783-dnows31783); gsecss31783 = Math.floor(ddiffs31783.valueOf()/1000); CountBacks31783(gsecss31783);