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 (LeadingZeros28592 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks28592(secs) { if (secs < 0) { document.getElementById("cntdwns28592").innerHTML = FinishMessages28592; return; } DisplayStrs28592 = DisplayFormats28592.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs28592 = DisplayStrs28592.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs28592 = DisplayStrs28592.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs28592 = DisplayStrs28592.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns28592").innerHTML = DisplayStrs28592; if (CountActives28592) //alert(SetTimeOutPeriods28592); setTimeout("CountBacks28592(" + (secs+CountSteppers28592) + ")", SetTimeOutPeriods28592); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors28592)=="undefined") BackColors28592 = ""; if (typeof(ForeColors28592)=="undefined") ForeColors28592= "white"; if (typeof(TargetDates28592)=="undefined") TargetDates28592 = "12/04/2023 9:00:00 PM"; if (typeof(DisplayFormats28592)=="undefined") DisplayFormats28592 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives28592)=="undefined") CountActives28592 = true; if (typeof(FinishMessages28592)=="undefined") FinishMessages28592 = ""; if (typeof(CountSteppers28592)!="number") CountSteppers28592 = -1; if (typeof(LeadingZeros28592)=="undefined") LeadingZeros28592 = true; CountSteppers28592 = Math.ceil(CountSteppers28592); if (CountSteppers28592 == 0) CountActives28592 = false; var SetTimeOutPeriods28592 = (Math.abs(CountSteppers28592)-1)*1000 + 990; puti(BackColors28592, ForeColors28592); var dthens28592 = new Date(TargetDates28592); var dnows28592 = new Date("05/09/2025 12:58:00 PM"); if(CountSteppers28592>0) ddiffs28592 = new Date(dnows28592-dthens28592); else ddiffs28592 = new Date(dthens28592-dnows28592); gsecss28592 = Math.floor(ddiffs28592.valueOf()/1000); CountBacks28592(gsecss28592);