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 (LeadingZeros31494 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31494(secs) { if (secs < 0) { document.getElementById("cntdwns31494").innerHTML = FinishMessages31494; return; } DisplayStrs31494 = DisplayFormats31494.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31494 = DisplayStrs31494.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31494 = DisplayStrs31494.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31494 = DisplayStrs31494.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31494").innerHTML = DisplayStrs31494; if (CountActives31494) //alert(SetTimeOutPeriods31494); setTimeout("CountBacks31494(" + (secs+CountSteppers31494) + ")", SetTimeOutPeriods31494); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31494)=="undefined") BackColors31494 = ""; if (typeof(ForeColors31494)=="undefined") ForeColors31494= "white"; if (typeof(TargetDates31494)=="undefined") TargetDates31494 = "02/01/2025 10:00:00 PM"; if (typeof(DisplayFormats31494)=="undefined") DisplayFormats31494 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31494)=="undefined") CountActives31494 = true; if (typeof(FinishMessages31494)=="undefined") FinishMessages31494 = ""; if (typeof(CountSteppers31494)!="number") CountSteppers31494 = -1; if (typeof(LeadingZeros31494)=="undefined") LeadingZeros31494 = true; CountSteppers31494 = Math.ceil(CountSteppers31494); if (CountSteppers31494 == 0) CountActives31494 = false; var SetTimeOutPeriods31494 = (Math.abs(CountSteppers31494)-1)*1000 + 990; puti(BackColors31494, ForeColors31494); var dthens31494 = new Date(TargetDates31494); var dnows31494 = new Date("01/31/2025 12:42:18 AM"); if(CountSteppers31494>0) ddiffs31494 = new Date(dnows31494-dthens31494); else ddiffs31494 = new Date(dthens31494-dnows31494); gsecss31494 = Math.floor(ddiffs31494.valueOf()/1000); CountBacks31494(gsecss31494);