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 (LeadingZeros31953 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31953(secs) { if (secs < 0) { document.getElementById("cntdwns31953").innerHTML = FinishMessages31953; return; } DisplayStrs31953 = DisplayFormats31953.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31953 = DisplayStrs31953.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31953 = DisplayStrs31953.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31953 = DisplayStrs31953.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31953").innerHTML = DisplayStrs31953; if (CountActives31953) //alert(SetTimeOutPeriods31953); setTimeout("CountBacks31953(" + (secs+CountSteppers31953) + ")", SetTimeOutPeriods31953); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31953)=="undefined") BackColors31953 = ""; if (typeof(ForeColors31953)=="undefined") ForeColors31953= "white"; if (typeof(TargetDates31953)=="undefined") TargetDates31953 = "03/08/2025 10:00:00 PM"; if (typeof(DisplayFormats31953)=="undefined") DisplayFormats31953 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31953)=="undefined") CountActives31953 = true; if (typeof(FinishMessages31953)=="undefined") FinishMessages31953 = ""; if (typeof(CountSteppers31953)!="number") CountSteppers31953 = -1; if (typeof(LeadingZeros31953)=="undefined") LeadingZeros31953 = true; CountSteppers31953 = Math.ceil(CountSteppers31953); if (CountSteppers31953 == 0) CountActives31953 = false; var SetTimeOutPeriods31953 = (Math.abs(CountSteppers31953)-1)*1000 + 990; puti(BackColors31953, ForeColors31953); var dthens31953 = new Date(TargetDates31953); var dnows31953 = new Date("03/06/2025 1:38:37 PM"); if(CountSteppers31953>0) ddiffs31953 = new Date(dnows31953-dthens31953); else ddiffs31953 = new Date(dthens31953-dnows31953); gsecss31953 = Math.floor(ddiffs31953.valueOf()/1000); CountBacks31953(gsecss31953);