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 (LeadingZeros29510 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks29510(secs) { if (secs < 0) { document.getElementById("cntdwns29510").innerHTML = FinishMessages29510; return; } DisplayStrs29510 = DisplayFormats29510.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs29510 = DisplayStrs29510.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs29510 = DisplayStrs29510.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs29510 = DisplayStrs29510.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns29510").innerHTML = DisplayStrs29510; if (CountActives29510) //alert(SetTimeOutPeriods29510); setTimeout("CountBacks29510(" + (secs+CountSteppers29510) + ")", SetTimeOutPeriods29510); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors29510)=="undefined") BackColors29510 = ""; if (typeof(ForeColors29510)=="undefined") ForeColors29510= "white"; if (typeof(TargetDates29510)=="undefined") TargetDates29510 = "12/09/2023 10:00:00 PM"; if (typeof(DisplayFormats29510)=="undefined") DisplayFormats29510 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives29510)=="undefined") CountActives29510 = true; if (typeof(FinishMessages29510)=="undefined") FinishMessages29510 = ""; if (typeof(CountSteppers29510)!="number") CountSteppers29510 = -1; if (typeof(LeadingZeros29510)=="undefined") LeadingZeros29510 = true; CountSteppers29510 = Math.ceil(CountSteppers29510); if (CountSteppers29510 == 0) CountActives29510 = false; var SetTimeOutPeriods29510 = (Math.abs(CountSteppers29510)-1)*1000 + 990; puti(BackColors29510, ForeColors29510); var dthens29510 = new Date(TargetDates29510); var dnows29510 = new Date("06/08/2025 3:19:43 PM"); if(CountSteppers29510>0) ddiffs29510 = new Date(dnows29510-dthens29510); else ddiffs29510 = new Date(dthens29510-dnows29510); gsecss29510 = Math.floor(ddiffs29510.valueOf()/1000); CountBacks29510(gsecss29510);