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 (LeadingZeros29393 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks29393(secs) { if (secs < 0) { document.getElementById("cntdwns29393").innerHTML = FinishMessages29393; return; } DisplayStrs29393 = DisplayFormats29393.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs29393 = DisplayStrs29393.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs29393 = DisplayStrs29393.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs29393 = DisplayStrs29393.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns29393").innerHTML = DisplayStrs29393; if (CountActives29393) //alert(SetTimeOutPeriods29393); setTimeout("CountBacks29393(" + (secs+CountSteppers29393) + ")", SetTimeOutPeriods29393); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors29393)=="undefined") BackColors29393 = ""; if (typeof(ForeColors29393)=="undefined") ForeColors29393= "white"; if (typeof(TargetDates29393)=="undefined") TargetDates29393 = "12/03/2023 9:00:00 PM"; if (typeof(DisplayFormats29393)=="undefined") DisplayFormats29393 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives29393)=="undefined") CountActives29393 = true; if (typeof(FinishMessages29393)=="undefined") FinishMessages29393 = ""; if (typeof(CountSteppers29393)!="number") CountSteppers29393 = -1; if (typeof(LeadingZeros29393)=="undefined") LeadingZeros29393 = true; CountSteppers29393 = Math.ceil(CountSteppers29393); if (CountSteppers29393 == 0) CountActives29393 = false; var SetTimeOutPeriods29393 = (Math.abs(CountSteppers29393)-1)*1000 + 990; puti(BackColors29393, ForeColors29393); var dthens29393 = new Date(TargetDates29393); var dnows29393 = new Date("05/11/2025 10:57:20 AM"); if(CountSteppers29393>0) ddiffs29393 = new Date(dnows29393-dthens29393); else ddiffs29393 = new Date(dthens29393-dnows29393); gsecss29393 = Math.floor(ddiffs29393.valueOf()/1000); CountBacks29393(gsecss29393);