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 (LeadingZeros28299 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks28299(secs) { if (secs < 0) { document.getElementById("cntdwns28299").innerHTML = FinishMessages28299; return; } DisplayStrs28299 = DisplayFormats28299.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs28299 = DisplayStrs28299.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs28299 = DisplayStrs28299.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs28299 = DisplayStrs28299.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns28299").innerHTML = DisplayStrs28299; if (CountActives28299) //alert(SetTimeOutPeriods28299); setTimeout("CountBacks28299(" + (secs+CountSteppers28299) + ")", SetTimeOutPeriods28299); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors28299)=="undefined") BackColors28299 = ""; if (typeof(ForeColors28299)=="undefined") ForeColors28299= "white"; if (typeof(TargetDates28299)=="undefined") TargetDates28299 = "06/06/2023 10:00:00 PM"; if (typeof(DisplayFormats28299)=="undefined") DisplayFormats28299 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives28299)=="undefined") CountActives28299 = true; if (typeof(FinishMessages28299)=="undefined") FinishMessages28299 = ""; if (typeof(CountSteppers28299)!="number") CountSteppers28299 = -1; if (typeof(LeadingZeros28299)=="undefined") LeadingZeros28299 = true; CountSteppers28299 = Math.ceil(CountSteppers28299); if (CountSteppers28299 == 0) CountActives28299 = false; var SetTimeOutPeriods28299 = (Math.abs(CountSteppers28299)-1)*1000 + 990; puti(BackColors28299, ForeColors28299); var dthens28299 = new Date(TargetDates28299); var dnows28299 = new Date("05/11/2025 4:46:16 AM"); if(CountSteppers28299>0) ddiffs28299 = new Date(dnows28299-dthens28299); else ddiffs28299 = new Date(dthens28299-dnows28299); gsecss28299 = Math.floor(ddiffs28299.valueOf()/1000); CountBacks28299(gsecss28299);