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 (LeadingZeros28263 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks28263(secs) { if (secs < 0) { document.getElementById("cntdwns28263").innerHTML = FinishMessages28263; return; } DisplayStrs28263 = DisplayFormats28263.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs28263 = DisplayStrs28263.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs28263 = DisplayStrs28263.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs28263 = DisplayStrs28263.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns28263").innerHTML = DisplayStrs28263; if (CountActives28263) //alert(SetTimeOutPeriods28263); setTimeout("CountBacks28263(" + (secs+CountSteppers28263) + ")", SetTimeOutPeriods28263); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors28263)=="undefined") BackColors28263 = ""; if (typeof(ForeColors28263)=="undefined") ForeColors28263= "white"; if (typeof(TargetDates28263)=="undefined") TargetDates28263 = "05/31/2023 10:00:00 PM"; if (typeof(DisplayFormats28263)=="undefined") DisplayFormats28263 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives28263)=="undefined") CountActives28263 = true; if (typeof(FinishMessages28263)=="undefined") FinishMessages28263 = ""; if (typeof(CountSteppers28263)!="number") CountSteppers28263 = -1; if (typeof(LeadingZeros28263)=="undefined") LeadingZeros28263 = true; CountSteppers28263 = Math.ceil(CountSteppers28263); if (CountSteppers28263 == 0) CountActives28263 = false; var SetTimeOutPeriods28263 = (Math.abs(CountSteppers28263)-1)*1000 + 990; puti(BackColors28263, ForeColors28263); var dthens28263 = new Date(TargetDates28263); var dnows28263 = new Date("05/11/2025 2:13:14 PM"); if(CountSteppers28263>0) ddiffs28263 = new Date(dnows28263-dthens28263); else ddiffs28263 = new Date(dthens28263-dnows28263); gsecss28263 = Math.floor(ddiffs28263.valueOf()/1000); CountBacks28263(gsecss28263);