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 (LeadingZeros31249 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31249(secs) { if (secs < 0) { document.getElementById("cntdwns31249").innerHTML = FinishMessages31249; return; } DisplayStrs31249 = DisplayFormats31249.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31249 = DisplayStrs31249.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31249 = DisplayStrs31249.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31249 = DisplayStrs31249.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31249").innerHTML = DisplayStrs31249; if (CountActives31249) //alert(SetTimeOutPeriods31249); setTimeout("CountBacks31249(" + (secs+CountSteppers31249) + ")", SetTimeOutPeriods31249); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31249)=="undefined") BackColors31249 = ""; if (typeof(ForeColors31249)=="undefined") ForeColors31249= "white"; if (typeof(TargetDates31249)=="undefined") TargetDates31249 = "02/01/2025 9:00:00 PM"; if (typeof(DisplayFormats31249)=="undefined") DisplayFormats31249 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31249)=="undefined") CountActives31249 = true; if (typeof(FinishMessages31249)=="undefined") FinishMessages31249 = ""; if (typeof(CountSteppers31249)!="number") CountSteppers31249 = -1; if (typeof(LeadingZeros31249)=="undefined") LeadingZeros31249 = true; CountSteppers31249 = Math.ceil(CountSteppers31249); if (CountSteppers31249 == 0) CountActives31249 = false; var SetTimeOutPeriods31249 = (Math.abs(CountSteppers31249)-1)*1000 + 990; puti(BackColors31249, ForeColors31249); var dthens31249 = new Date(TargetDates31249); var dnows31249 = new Date("01/31/2025 12:17:16 AM"); if(CountSteppers31249>0) ddiffs31249 = new Date(dnows31249-dthens31249); else ddiffs31249 = new Date(dthens31249-dnows31249); gsecss31249 = Math.floor(ddiffs31249.valueOf()/1000); CountBacks31249(gsecss31249);