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 (LeadingZeros28326 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks28326(secs) { if (secs < 0) { document.getElementById("cntdwns28326").innerHTML = FinishMessages28326; return; } DisplayStrs28326 = DisplayFormats28326.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs28326 = DisplayStrs28326.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs28326 = DisplayStrs28326.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs28326 = DisplayStrs28326.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns28326").innerHTML = DisplayStrs28326; if (CountActives28326) //alert(SetTimeOutPeriods28326); setTimeout("CountBacks28326(" + (secs+CountSteppers28326) + ")", SetTimeOutPeriods28326); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors28326)=="undefined") BackColors28326 = ""; if (typeof(ForeColors28326)=="undefined") ForeColors28326= "white"; if (typeof(TargetDates28326)=="undefined") TargetDates28326 = "05/30/2023 10:00:00 PM"; if (typeof(DisplayFormats28326)=="undefined") DisplayFormats28326 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives28326)=="undefined") CountActives28326 = true; if (typeof(FinishMessages28326)=="undefined") FinishMessages28326 = ""; if (typeof(CountSteppers28326)!="number") CountSteppers28326 = -1; if (typeof(LeadingZeros28326)=="undefined") LeadingZeros28326 = true; CountSteppers28326 = Math.ceil(CountSteppers28326); if (CountSteppers28326 == 0) CountActives28326 = false; var SetTimeOutPeriods28326 = (Math.abs(CountSteppers28326)-1)*1000 + 990; puti(BackColors28326, ForeColors28326); var dthens28326 = new Date(TargetDates28326); var dnows28326 = new Date("05/11/2025 5:41:13 PM"); if(CountSteppers28326>0) ddiffs28326 = new Date(dnows28326-dthens28326); else ddiffs28326 = new Date(dthens28326-dnows28326); gsecss28326 = Math.floor(ddiffs28326.valueOf()/1000); CountBacks28326(gsecss28326);