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 (LeadingZeros29538 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks29538(secs) { if (secs < 0) { document.getElementById("cntdwns29538").innerHTML = FinishMessages29538; return; } DisplayStrs29538 = DisplayFormats29538.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs29538 = DisplayStrs29538.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs29538 = DisplayStrs29538.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs29538 = DisplayStrs29538.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns29538").innerHTML = DisplayStrs29538; if (CountActives29538) //alert(SetTimeOutPeriods29538); setTimeout("CountBacks29538(" + (secs+CountSteppers29538) + ")", SetTimeOutPeriods29538); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors29538)=="undefined") BackColors29538 = ""; if (typeof(ForeColors29538)=="undefined") ForeColors29538= "white"; if (typeof(TargetDates29538)=="undefined") TargetDates29538 = "12/10/2023 10:00:00 PM"; if (typeof(DisplayFormats29538)=="undefined") DisplayFormats29538 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives29538)=="undefined") CountActives29538 = true; if (typeof(FinishMessages29538)=="undefined") FinishMessages29538 = ""; if (typeof(CountSteppers29538)!="number") CountSteppers29538 = -1; if (typeof(LeadingZeros29538)=="undefined") LeadingZeros29538 = true; CountSteppers29538 = Math.ceil(CountSteppers29538); if (CountSteppers29538 == 0) CountActives29538 = false; var SetTimeOutPeriods29538 = (Math.abs(CountSteppers29538)-1)*1000 + 990; puti(BackColors29538, ForeColors29538); var dthens29538 = new Date(TargetDates29538); var dnows29538 = new Date("05/11/2025 8:59:11 PM"); if(CountSteppers29538>0) ddiffs29538 = new Date(dnows29538-dthens29538); else ddiffs29538 = new Date(dthens29538-dnows29538); gsecss29538 = Math.floor(ddiffs29538.valueOf()/1000); CountBacks29538(gsecss29538);