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 (LeadingZeros31530 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31530(secs) { if (secs < 0) { document.getElementById("cntdwns31530").innerHTML = FinishMessages31530; return; } DisplayStrs31530 = DisplayFormats31530.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31530 = DisplayStrs31530.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31530 = DisplayStrs31530.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31530 = DisplayStrs31530.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31530").innerHTML = DisplayStrs31530; if (CountActives31530) //alert(SetTimeOutPeriods31530); setTimeout("CountBacks31530(" + (secs+CountSteppers31530) + ")", SetTimeOutPeriods31530); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31530)=="undefined") BackColors31530 = ""; if (typeof(ForeColors31530)=="undefined") ForeColors31530= "white"; if (typeof(TargetDates31530)=="undefined") TargetDates31530 = "02/08/2025 10:00:00 PM"; if (typeof(DisplayFormats31530)=="undefined") DisplayFormats31530 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31530)=="undefined") CountActives31530 = true; if (typeof(FinishMessages31530)=="undefined") FinishMessages31530 = ""; if (typeof(CountSteppers31530)!="number") CountSteppers31530 = -1; if (typeof(LeadingZeros31530)=="undefined") LeadingZeros31530 = true; CountSteppers31530 = Math.ceil(CountSteppers31530); if (CountSteppers31530 == 0) CountActives31530 = false; var SetTimeOutPeriods31530 = (Math.abs(CountSteppers31530)-1)*1000 + 990; puti(BackColors31530, ForeColors31530); var dthens31530 = new Date(TargetDates31530); var dnows31530 = new Date("02/05/2025 8:50:47 AM"); if(CountSteppers31530>0) ddiffs31530 = new Date(dnows31530-dthens31530); else ddiffs31530 = new Date(dthens31530-dnows31530); gsecss31530 = Math.floor(ddiffs31530.valueOf()/1000); CountBacks31530(gsecss31530);