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 (LeadingZeros29446 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks29446(secs) { if (secs < 0) { document.getElementById("cntdwns29446").innerHTML = FinishMessages29446; return; } DisplayStrs29446 = DisplayFormats29446.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs29446 = DisplayStrs29446.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs29446 = DisplayStrs29446.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs29446 = DisplayStrs29446.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns29446").innerHTML = DisplayStrs29446; if (CountActives29446) //alert(SetTimeOutPeriods29446); setTimeout("CountBacks29446(" + (secs+CountSteppers29446) + ")", SetTimeOutPeriods29446); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors29446)=="undefined") BackColors29446 = ""; if (typeof(ForeColors29446)=="undefined") ForeColors29446= "white"; if (typeof(TargetDates29446)=="undefined") TargetDates29446 = "12/09/2023 10:00:00 PM"; if (typeof(DisplayFormats29446)=="undefined") DisplayFormats29446 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives29446)=="undefined") CountActives29446 = true; if (typeof(FinishMessages29446)=="undefined") FinishMessages29446 = ""; if (typeof(CountSteppers29446)!="number") CountSteppers29446 = -1; if (typeof(LeadingZeros29446)=="undefined") LeadingZeros29446 = true; CountSteppers29446 = Math.ceil(CountSteppers29446); if (CountSteppers29446 == 0) CountActives29446 = false; var SetTimeOutPeriods29446 = (Math.abs(CountSteppers29446)-1)*1000 + 990; puti(BackColors29446, ForeColors29446); var dthens29446 = new Date(TargetDates29446); var dnows29446 = new Date("05/09/2025 10:10:30 AM"); if(CountSteppers29446>0) ddiffs29446 = new Date(dnows29446-dthens29446); else ddiffs29446 = new Date(dthens29446-dnows29446); gsecss29446 = Math.floor(ddiffs29446.valueOf()/1000); CountBacks29446(gsecss29446);