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 (LeadingZeros29293 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks29293(secs) { if (secs < 0) { document.getElementById("cntdwns29293").innerHTML = FinishMessages29293; return; } DisplayStrs29293 = DisplayFormats29293.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs29293 = DisplayStrs29293.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs29293 = DisplayStrs29293.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs29293 = DisplayStrs29293.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns29293").innerHTML = DisplayStrs29293; if (CountActives29293) //alert(SetTimeOutPeriods29293); setTimeout("CountBacks29293(" + (secs+CountSteppers29293) + ")", SetTimeOutPeriods29293); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors29293)=="undefined") BackColors29293 = ""; if (typeof(ForeColors29293)=="undefined") ForeColors29293= "white"; if (typeof(TargetDates29293)=="undefined") TargetDates29293 = "12/09/2023 9:00:00 PM"; if (typeof(DisplayFormats29293)=="undefined") DisplayFormats29293 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives29293)=="undefined") CountActives29293 = true; if (typeof(FinishMessages29293)=="undefined") FinishMessages29293 = ""; if (typeof(CountSteppers29293)!="number") CountSteppers29293 = -1; if (typeof(LeadingZeros29293)=="undefined") LeadingZeros29293 = true; CountSteppers29293 = Math.ceil(CountSteppers29293); if (CountSteppers29293 == 0) CountActives29293 = false; var SetTimeOutPeriods29293 = (Math.abs(CountSteppers29293)-1)*1000 + 990; puti(BackColors29293, ForeColors29293); var dthens29293 = new Date(TargetDates29293); var dnows29293 = new Date("05/11/2025 10:54:57 AM"); if(CountSteppers29293>0) ddiffs29293 = new Date(dnows29293-dthens29293); else ddiffs29293 = new Date(dthens29293-dnows29293); gsecss29293 = Math.floor(ddiffs29293.valueOf()/1000); CountBacks29293(gsecss29293);