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 (LeadingZeros26443 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks26443(secs) { if (secs < 0) { document.getElementById("cntdwns26443").innerHTML = FinishMessages26443; return; } DisplayStrs26443 = DisplayFormats26443.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs26443 = DisplayStrs26443.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs26443 = DisplayStrs26443.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs26443 = DisplayStrs26443.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns26443").innerHTML = DisplayStrs26443; if (CountActives26443) //alert(SetTimeOutPeriods26443); setTimeout("CountBacks26443(" + (secs+CountSteppers26443) + ")", SetTimeOutPeriods26443); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors26443)=="undefined") BackColors26443 = ""; if (typeof(ForeColors26443)=="undefined") ForeColors26443= "white"; if (typeof(TargetDates26443)=="undefined") TargetDates26443 = "06/12/2023 10:00:00 PM"; if (typeof(DisplayFormats26443)=="undefined") DisplayFormats26443 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives26443)=="undefined") CountActives26443 = true; if (typeof(FinishMessages26443)=="undefined") FinishMessages26443 = ""; if (typeof(CountSteppers26443)!="number") CountSteppers26443 = -1; if (typeof(LeadingZeros26443)=="undefined") LeadingZeros26443 = true; CountSteppers26443 = Math.ceil(CountSteppers26443); if (CountSteppers26443 == 0) CountActives26443 = false; var SetTimeOutPeriods26443 = (Math.abs(CountSteppers26443)-1)*1000 + 990; puti(BackColors26443, ForeColors26443); var dthens26443 = new Date(TargetDates26443); var dnows26443 = new Date("05/11/2025 10:57:20 AM"); if(CountSteppers26443>0) ddiffs26443 = new Date(dnows26443-dthens26443); else ddiffs26443 = new Date(dthens26443-dnows26443); gsecss26443 = Math.floor(ddiffs26443.valueOf()/1000); CountBacks26443(gsecss26443);