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 (LeadingZeros28038 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks28038(secs) { if (secs < 0) { document.getElementById("cntdwns28038").innerHTML = FinishMessages28038; return; } DisplayStrs28038 = DisplayFormats28038.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs28038 = DisplayStrs28038.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs28038 = DisplayStrs28038.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs28038 = DisplayStrs28038.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns28038").innerHTML = DisplayStrs28038; if (CountActives28038) //alert(SetTimeOutPeriods28038); setTimeout("CountBacks28038(" + (secs+CountSteppers28038) + ")", SetTimeOutPeriods28038); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors28038)=="undefined") BackColors28038 = ""; if (typeof(ForeColors28038)=="undefined") ForeColors28038= "white"; if (typeof(TargetDates28038)=="undefined") TargetDates28038 = "03/31/2023 11:00:00 AM"; if (typeof(DisplayFormats28038)=="undefined") DisplayFormats28038 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives28038)=="undefined") CountActives28038 = true; if (typeof(FinishMessages28038)=="undefined") FinishMessages28038 = ""; if (typeof(CountSteppers28038)!="number") CountSteppers28038 = -1; if (typeof(LeadingZeros28038)=="undefined") LeadingZeros28038 = true; CountSteppers28038 = Math.ceil(CountSteppers28038); if (CountSteppers28038 == 0) CountActives28038 = false; var SetTimeOutPeriods28038 = (Math.abs(CountSteppers28038)-1)*1000 + 990; puti(BackColors28038, ForeColors28038); var dthens28038 = new Date(TargetDates28038); var dnows28038 = new Date("05/13/2025 4:22:02 AM"); if(CountSteppers28038>0) ddiffs28038 = new Date(dnows28038-dthens28038); else ddiffs28038 = new Date(dthens28038-dnows28038); gsecss28038 = Math.floor(ddiffs28038.valueOf()/1000); CountBacks28038(gsecss28038);