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 (LeadingZeros29132 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks29132(secs) { if (secs < 0) { document.getElementById("cntdwns29132").innerHTML = FinishMessages29132; return; } DisplayStrs29132 = DisplayFormats29132.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs29132 = DisplayStrs29132.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs29132 = DisplayStrs29132.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs29132 = DisplayStrs29132.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns29132").innerHTML = DisplayStrs29132; if (CountActives29132) //alert(SetTimeOutPeriods29132); setTimeout("CountBacks29132(" + (secs+CountSteppers29132) + ")", SetTimeOutPeriods29132); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors29132)=="undefined") BackColors29132 = ""; if (typeof(ForeColors29132)=="undefined") ForeColors29132= "white"; if (typeof(TargetDates29132)=="undefined") TargetDates29132 = "09/25/2023 10:00:00 PM"; if (typeof(DisplayFormats29132)=="undefined") DisplayFormats29132 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives29132)=="undefined") CountActives29132 = true; if (typeof(FinishMessages29132)=="undefined") FinishMessages29132 = ""; if (typeof(CountSteppers29132)!="number") CountSteppers29132 = -1; if (typeof(LeadingZeros29132)=="undefined") LeadingZeros29132 = true; CountSteppers29132 = Math.ceil(CountSteppers29132); if (CountSteppers29132 == 0) CountActives29132 = false; var SetTimeOutPeriods29132 = (Math.abs(CountSteppers29132)-1)*1000 + 990; puti(BackColors29132, ForeColors29132); var dthens29132 = new Date(TargetDates29132); var dnows29132 = new Date("05/11/2025 7:45:27 AM"); if(CountSteppers29132>0) ddiffs29132 = new Date(dnows29132-dthens29132); else ddiffs29132 = new Date(dthens29132-dnows29132); gsecss29132 = Math.floor(ddiffs29132.valueOf()/1000); CountBacks29132(gsecss29132);