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 (LeadingZeros25745 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks25745(secs) { if (secs < 0) { document.getElementById("cntdwns25745").innerHTML = FinishMessages25745; return; } DisplayStrs25745 = DisplayFormats25745.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs25745 = DisplayStrs25745.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs25745 = DisplayStrs25745.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs25745 = DisplayStrs25745.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns25745").innerHTML = DisplayStrs25745; if (CountActives25745) //alert(SetTimeOutPeriods25745); setTimeout("CountBacks25745(" + (secs+CountSteppers25745) + ")", SetTimeOutPeriods25745); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors25745)=="undefined") BackColors25745 = ""; if (typeof(ForeColors25745)=="undefined") ForeColors25745= "white"; if (typeof(TargetDates25745)=="undefined") TargetDates25745 = "03/30/2023 11:00:00 PM"; if (typeof(DisplayFormats25745)=="undefined") DisplayFormats25745 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives25745)=="undefined") CountActives25745 = true; if (typeof(FinishMessages25745)=="undefined") FinishMessages25745 = ""; if (typeof(CountSteppers25745)!="number") CountSteppers25745 = -1; if (typeof(LeadingZeros25745)=="undefined") LeadingZeros25745 = true; CountSteppers25745 = Math.ceil(CountSteppers25745); if (CountSteppers25745 == 0) CountActives25745 = false; var SetTimeOutPeriods25745 = (Math.abs(CountSteppers25745)-1)*1000 + 990; puti(BackColors25745, ForeColors25745); var dthens25745 = new Date(TargetDates25745); var dnows25745 = new Date("05/13/2025 4:24:41 AM"); if(CountSteppers25745>0) ddiffs25745 = new Date(dnows25745-dthens25745); else ddiffs25745 = new Date(dthens25745-dnows25745); gsecss25745 = Math.floor(ddiffs25745.valueOf()/1000); CountBacks25745(gsecss25745);