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 (LeadingZeros29309 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks29309(secs) { if (secs < 0) { document.getElementById("cntdwns29309").innerHTML = FinishMessages29309; return; } DisplayStrs29309 = DisplayFormats29309.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs29309 = DisplayStrs29309.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs29309 = DisplayStrs29309.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs29309 = DisplayStrs29309.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns29309").innerHTML = DisplayStrs29309; if (CountActives29309) //alert(SetTimeOutPeriods29309); setTimeout("CountBacks29309(" + (secs+CountSteppers29309) + ")", SetTimeOutPeriods29309); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors29309)=="undefined") BackColors29309 = ""; if (typeof(ForeColors29309)=="undefined") ForeColors29309= "white"; if (typeof(TargetDates29309)=="undefined") TargetDates29309 = "12/11/2023 9:00:00 PM"; if (typeof(DisplayFormats29309)=="undefined") DisplayFormats29309 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives29309)=="undefined") CountActives29309 = true; if (typeof(FinishMessages29309)=="undefined") FinishMessages29309 = ""; if (typeof(CountSteppers29309)!="number") CountSteppers29309 = -1; if (typeof(LeadingZeros29309)=="undefined") LeadingZeros29309 = true; CountSteppers29309 = Math.ceil(CountSteppers29309); if (CountSteppers29309 == 0) CountActives29309 = false; var SetTimeOutPeriods29309 = (Math.abs(CountSteppers29309)-1)*1000 + 990; puti(BackColors29309, ForeColors29309); var dthens29309 = new Date(TargetDates29309); var dnows29309 = new Date("05/11/2025 2:15:21 PM"); if(CountSteppers29309>0) ddiffs29309 = new Date(dnows29309-dthens29309); else ddiffs29309 = new Date(dthens29309-dnows29309); gsecss29309 = Math.floor(ddiffs29309.valueOf()/1000); CountBacks29309(gsecss29309);