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 (LeadingZeros29495 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks29495(secs) { if (secs < 0) { document.getElementById("cntdwns29495").innerHTML = FinishMessages29495; return; } DisplayStrs29495 = DisplayFormats29495.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs29495 = DisplayStrs29495.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs29495 = DisplayStrs29495.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs29495 = DisplayStrs29495.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns29495").innerHTML = DisplayStrs29495; if (CountActives29495) //alert(SetTimeOutPeriods29495); setTimeout("CountBacks29495(" + (secs+CountSteppers29495) + ")", SetTimeOutPeriods29495); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors29495)=="undefined") BackColors29495 = ""; if (typeof(ForeColors29495)=="undefined") ForeColors29495= "white"; if (typeof(TargetDates29495)=="undefined") TargetDates29495 = "12/10/2023 10:00:00 PM"; if (typeof(DisplayFormats29495)=="undefined") DisplayFormats29495 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives29495)=="undefined") CountActives29495 = true; if (typeof(FinishMessages29495)=="undefined") FinishMessages29495 = ""; if (typeof(CountSteppers29495)!="number") CountSteppers29495 = -1; if (typeof(LeadingZeros29495)=="undefined") LeadingZeros29495 = true; CountSteppers29495 = Math.ceil(CountSteppers29495); if (CountSteppers29495 == 0) CountActives29495 = false; var SetTimeOutPeriods29495 = (Math.abs(CountSteppers29495)-1)*1000 + 990; puti(BackColors29495, ForeColors29495); var dthens29495 = new Date(TargetDates29495); var dnows29495 = new Date("05/09/2025 10:07:50 AM"); if(CountSteppers29495>0) ddiffs29495 = new Date(dnows29495-dthens29495); else ddiffs29495 = new Date(dthens29495-dnows29495); gsecss29495 = Math.floor(ddiffs29495.valueOf()/1000); CountBacks29495(gsecss29495);