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 (LeadingZeros29223 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks29223(secs) { if (secs < 0) { document.getElementById("cntdwns29223").innerHTML = FinishMessages29223; return; } DisplayStrs29223 = DisplayFormats29223.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs29223 = DisplayStrs29223.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs29223 = DisplayStrs29223.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs29223 = DisplayStrs29223.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns29223").innerHTML = DisplayStrs29223; if (CountActives29223) //alert(SetTimeOutPeriods29223); setTimeout("CountBacks29223(" + (secs+CountSteppers29223) + ")", SetTimeOutPeriods29223); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors29223)=="undefined") BackColors29223 = ""; if (typeof(ForeColors29223)=="undefined") ForeColors29223= "white"; if (typeof(TargetDates29223)=="undefined") TargetDates29223 = "10/04/2023 10:00:00 PM"; if (typeof(DisplayFormats29223)=="undefined") DisplayFormats29223 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives29223)=="undefined") CountActives29223 = true; if (typeof(FinishMessages29223)=="undefined") FinishMessages29223 = ""; if (typeof(CountSteppers29223)!="number") CountSteppers29223 = -1; if (typeof(LeadingZeros29223)=="undefined") LeadingZeros29223 = true; CountSteppers29223 = Math.ceil(CountSteppers29223); if (CountSteppers29223 == 0) CountActives29223 = false; var SetTimeOutPeriods29223 = (Math.abs(CountSteppers29223)-1)*1000 + 990; puti(BackColors29223, ForeColors29223); var dthens29223 = new Date(TargetDates29223); var dnows29223 = new Date("05/09/2025 12:56:00 PM"); if(CountSteppers29223>0) ddiffs29223 = new Date(dnows29223-dthens29223); else ddiffs29223 = new Date(dthens29223-dnows29223); gsecss29223 = Math.floor(ddiffs29223.valueOf()/1000); CountBacks29223(gsecss29223);