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 (LeadingZeros31770 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31770(secs) { if (secs < 0) { document.getElementById("cntdwns31770").innerHTML = FinishMessages31770; return; } DisplayStrs31770 = DisplayFormats31770.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31770 = DisplayStrs31770.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31770 = DisplayStrs31770.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31770 = DisplayStrs31770.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31770").innerHTML = DisplayStrs31770; if (CountActives31770) //alert(SetTimeOutPeriods31770); setTimeout("CountBacks31770(" + (secs+CountSteppers31770) + ")", SetTimeOutPeriods31770); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31770)=="undefined") BackColors31770 = ""; if (typeof(ForeColors31770)=="undefined") ForeColors31770= "white"; if (typeof(TargetDates31770)=="undefined") TargetDates31770 = "02/01/2025 10:00:00 PM"; if (typeof(DisplayFormats31770)=="undefined") DisplayFormats31770 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31770)=="undefined") CountActives31770 = true; if (typeof(FinishMessages31770)=="undefined") FinishMessages31770 = ""; if (typeof(CountSteppers31770)!="number") CountSteppers31770 = -1; if (typeof(LeadingZeros31770)=="undefined") LeadingZeros31770 = true; CountSteppers31770 = Math.ceil(CountSteppers31770); if (CountSteppers31770 == 0) CountActives31770 = false; var SetTimeOutPeriods31770 = (Math.abs(CountSteppers31770)-1)*1000 + 990; puti(BackColors31770, ForeColors31770); var dthens31770 = new Date(TargetDates31770); var dnows31770 = new Date("01/30/2025 3:31:19 PM"); if(CountSteppers31770>0) ddiffs31770 = new Date(dnows31770-dthens31770); else ddiffs31770 = new Date(dthens31770-dnows31770); gsecss31770 = Math.floor(ddiffs31770.valueOf()/1000); CountBacks31770(gsecss31770);