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 (LeadingZeros29523 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks29523(secs) { if (secs < 0) { document.getElementById("cntdwns29523").innerHTML = FinishMessages29523; return; } DisplayStrs29523 = DisplayFormats29523.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs29523 = DisplayStrs29523.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs29523 = DisplayStrs29523.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs29523 = DisplayStrs29523.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns29523").innerHTML = DisplayStrs29523; if (CountActives29523) //alert(SetTimeOutPeriods29523); setTimeout("CountBacks29523(" + (secs+CountSteppers29523) + ")", SetTimeOutPeriods29523); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors29523)=="undefined") BackColors29523 = ""; if (typeof(ForeColors29523)=="undefined") ForeColors29523= "white"; if (typeof(TargetDates29523)=="undefined") TargetDates29523 = "12/04/2023 10:00:00 PM"; if (typeof(DisplayFormats29523)=="undefined") DisplayFormats29523 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives29523)=="undefined") CountActives29523 = true; if (typeof(FinishMessages29523)=="undefined") FinishMessages29523 = ""; if (typeof(CountSteppers29523)!="number") CountSteppers29523 = -1; if (typeof(LeadingZeros29523)=="undefined") LeadingZeros29523 = true; CountSteppers29523 = Math.ceil(CountSteppers29523); if (CountSteppers29523 == 0) CountActives29523 = false; var SetTimeOutPeriods29523 = (Math.abs(CountSteppers29523)-1)*1000 + 990; puti(BackColors29523, ForeColors29523); var dthens29523 = new Date(TargetDates29523); var dnows29523 = new Date("05/09/2025 6:39:55 AM"); if(CountSteppers29523>0) ddiffs29523 = new Date(dnows29523-dthens29523); else ddiffs29523 = new Date(dthens29523-dnows29523); gsecss29523 = Math.floor(ddiffs29523.valueOf()/1000); CountBacks29523(gsecss29523);