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 (LeadingZeros31712 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31712(secs) { if (secs < 0) { document.getElementById("cntdwns31712").innerHTML = FinishMessages31712; return; } DisplayStrs31712 = DisplayFormats31712.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31712 = DisplayStrs31712.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31712 = DisplayStrs31712.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31712 = DisplayStrs31712.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31712").innerHTML = DisplayStrs31712; if (CountActives31712) //alert(SetTimeOutPeriods31712); setTimeout("CountBacks31712(" + (secs+CountSteppers31712) + ")", SetTimeOutPeriods31712); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31712)=="undefined") BackColors31712 = ""; if (typeof(ForeColors31712)=="undefined") ForeColors31712= "white"; if (typeof(TargetDates31712)=="undefined") TargetDates31712 = "02/01/2025 10:00:00 PM"; if (typeof(DisplayFormats31712)=="undefined") DisplayFormats31712 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31712)=="undefined") CountActives31712 = true; if (typeof(FinishMessages31712)=="undefined") FinishMessages31712 = ""; if (typeof(CountSteppers31712)!="number") CountSteppers31712 = -1; if (typeof(LeadingZeros31712)=="undefined") LeadingZeros31712 = true; CountSteppers31712 = Math.ceil(CountSteppers31712); if (CountSteppers31712 == 0) CountActives31712 = false; var SetTimeOutPeriods31712 = (Math.abs(CountSteppers31712)-1)*1000 + 990; puti(BackColors31712, ForeColors31712); var dthens31712 = new Date(TargetDates31712); var dnows31712 = new Date("01/30/2025 6:27:54 PM"); if(CountSteppers31712>0) ddiffs31712 = new Date(dnows31712-dthens31712); else ddiffs31712 = new Date(dthens31712-dnows31712); gsecss31712 = Math.floor(ddiffs31712.valueOf()/1000); CountBacks31712(gsecss31712);