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 (LeadingZeros29527 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks29527(secs) { if (secs < 0) { document.getElementById("cntdwns29527").innerHTML = FinishMessages29527; return; } DisplayStrs29527 = DisplayFormats29527.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs29527 = DisplayStrs29527.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs29527 = DisplayStrs29527.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs29527 = DisplayStrs29527.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns29527").innerHTML = DisplayStrs29527; if (CountActives29527) //alert(SetTimeOutPeriods29527); setTimeout("CountBacks29527(" + (secs+CountSteppers29527) + ")", SetTimeOutPeriods29527); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors29527)=="undefined") BackColors29527 = ""; if (typeof(ForeColors29527)=="undefined") ForeColors29527= "white"; if (typeof(TargetDates29527)=="undefined") TargetDates29527 = "12/09/2023 10:00:00 PM"; if (typeof(DisplayFormats29527)=="undefined") DisplayFormats29527 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives29527)=="undefined") CountActives29527 = true; if (typeof(FinishMessages29527)=="undefined") FinishMessages29527 = ""; if (typeof(CountSteppers29527)!="number") CountSteppers29527 = -1; if (typeof(LeadingZeros29527)=="undefined") LeadingZeros29527 = true; CountSteppers29527 = Math.ceil(CountSteppers29527); if (CountSteppers29527 == 0) CountActives29527 = false; var SetTimeOutPeriods29527 = (Math.abs(CountSteppers29527)-1)*1000 + 990; puti(BackColors29527, ForeColors29527); var dthens29527 = new Date(TargetDates29527); var dnows29527 = new Date("05/11/2025 9:01:58 PM"); if(CountSteppers29527>0) ddiffs29527 = new Date(dnows29527-dthens29527); else ddiffs29527 = new Date(dthens29527-dnows29527); gsecss29527 = Math.floor(ddiffs29527.valueOf()/1000); CountBacks29527(gsecss29527);