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 (LeadingZeros28528 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks28528(secs) { if (secs < 0) { document.getElementById("cntdwns28528").innerHTML = FinishMessages28528; return; } DisplayStrs28528 = DisplayFormats28528.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs28528 = DisplayStrs28528.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs28528 = DisplayStrs28528.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs28528 = DisplayStrs28528.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns28528").innerHTML = DisplayStrs28528; if (CountActives28528) //alert(SetTimeOutPeriods28528); setTimeout("CountBacks28528(" + (secs+CountSteppers28528) + ")", SetTimeOutPeriods28528); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors28528)=="undefined") BackColors28528 = ""; if (typeof(ForeColors28528)=="undefined") ForeColors28528= "white"; if (typeof(TargetDates28528)=="undefined") TargetDates28528 = "06/06/2023 10:00:00 PM"; if (typeof(DisplayFormats28528)=="undefined") DisplayFormats28528 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives28528)=="undefined") CountActives28528 = true; if (typeof(FinishMessages28528)=="undefined") FinishMessages28528 = ""; if (typeof(CountSteppers28528)!="number") CountSteppers28528 = -1; if (typeof(LeadingZeros28528)=="undefined") LeadingZeros28528 = true; CountSteppers28528 = Math.ceil(CountSteppers28528); if (CountSteppers28528 == 0) CountActives28528 = false; var SetTimeOutPeriods28528 = (Math.abs(CountSteppers28528)-1)*1000 + 990; puti(BackColors28528, ForeColors28528); var dthens28528 = new Date(TargetDates28528); var dnows28528 = new Date("05/11/2025 9:05:46 PM"); if(CountSteppers28528>0) ddiffs28528 = new Date(dnows28528-dthens28528); else ddiffs28528 = new Date(dthens28528-dnows28528); gsecss28528 = Math.floor(ddiffs28528.valueOf()/1000); CountBacks28528(gsecss28528);