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 (LeadingZeros31903 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31903(secs) { if (secs < 0) { document.getElementById("cntdwns31903").innerHTML = FinishMessages31903; return; } DisplayStrs31903 = DisplayFormats31903.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31903 = DisplayStrs31903.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31903 = DisplayStrs31903.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31903 = DisplayStrs31903.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31903").innerHTML = DisplayStrs31903; if (CountActives31903) //alert(SetTimeOutPeriods31903); setTimeout("CountBacks31903(" + (secs+CountSteppers31903) + ")", SetTimeOutPeriods31903); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31903)=="undefined") BackColors31903 = ""; if (typeof(ForeColors31903)=="undefined") ForeColors31903= "white"; if (typeof(TargetDates31903)=="undefined") TargetDates31903 = "03/29/2025 10:00:00 PM"; if (typeof(DisplayFormats31903)=="undefined") DisplayFormats31903 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31903)=="undefined") CountActives31903 = true; if (typeof(FinishMessages31903)=="undefined") FinishMessages31903 = ""; if (typeof(CountSteppers31903)!="number") CountSteppers31903 = -1; if (typeof(LeadingZeros31903)=="undefined") LeadingZeros31903 = true; CountSteppers31903 = Math.ceil(CountSteppers31903); if (CountSteppers31903 == 0) CountActives31903 = false; var SetTimeOutPeriods31903 = (Math.abs(CountSteppers31903)-1)*1000 + 990; puti(BackColors31903, ForeColors31903); var dthens31903 = new Date(TargetDates31903); var dnows31903 = new Date("03/29/2025 4:20:23 PM"); if(CountSteppers31903>0) ddiffs31903 = new Date(dnows31903-dthens31903); else ddiffs31903 = new Date(dthens31903-dnows31903); gsecss31903 = Math.floor(ddiffs31903.valueOf()/1000); CountBacks31903(gsecss31903);