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 (LeadingZeros29489 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks29489(secs) { if (secs < 0) { document.getElementById("cntdwns29489").innerHTML = FinishMessages29489; return; } DisplayStrs29489 = DisplayFormats29489.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs29489 = DisplayStrs29489.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs29489 = DisplayStrs29489.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs29489 = DisplayStrs29489.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns29489").innerHTML = DisplayStrs29489; if (CountActives29489) //alert(SetTimeOutPeriods29489); setTimeout("CountBacks29489(" + (secs+CountSteppers29489) + ")", SetTimeOutPeriods29489); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors29489)=="undefined") BackColors29489 = ""; if (typeof(ForeColors29489)=="undefined") ForeColors29489= "white"; if (typeof(TargetDates29489)=="undefined") TargetDates29489 = "12/04/2023 10:00:00 PM"; if (typeof(DisplayFormats29489)=="undefined") DisplayFormats29489 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives29489)=="undefined") CountActives29489 = true; if (typeof(FinishMessages29489)=="undefined") FinishMessages29489 = ""; if (typeof(CountSteppers29489)!="number") CountSteppers29489 = -1; if (typeof(LeadingZeros29489)=="undefined") LeadingZeros29489 = true; CountSteppers29489 = Math.ceil(CountSteppers29489); if (CountSteppers29489 == 0) CountActives29489 = false; var SetTimeOutPeriods29489 = (Math.abs(CountSteppers29489)-1)*1000 + 990; puti(BackColors29489, ForeColors29489); var dthens29489 = new Date(TargetDates29489); var dnows29489 = new Date("05/11/2025 2:15:21 PM"); if(CountSteppers29489>0) ddiffs29489 = new Date(dnows29489-dthens29489); else ddiffs29489 = new Date(dthens29489-dnows29489); gsecss29489 = Math.floor(ddiffs29489.valueOf()/1000); CountBacks29489(gsecss29489);