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 (LeadingZeros27549 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks27549(secs) { if (secs < 0) { document.getElementById("cntdwns27549").innerHTML = FinishMessages27549; return; } DisplayStrs27549 = DisplayFormats27549.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs27549 = DisplayStrs27549.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs27549 = DisplayStrs27549.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs27549 = DisplayStrs27549.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns27549").innerHTML = DisplayStrs27549; if (CountActives27549) //alert(SetTimeOutPeriods27549); setTimeout("CountBacks27549(" + (secs+CountSteppers27549) + ")", SetTimeOutPeriods27549); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors27549)=="undefined") BackColors27549 = ""; if (typeof(ForeColors27549)=="undefined") ForeColors27549= "white"; if (typeof(TargetDates27549)=="undefined") TargetDates27549 = "04/01/2023 11:00:00 PM"; if (typeof(DisplayFormats27549)=="undefined") DisplayFormats27549 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives27549)=="undefined") CountActives27549 = true; if (typeof(FinishMessages27549)=="undefined") FinishMessages27549 = ""; if (typeof(CountSteppers27549)!="number") CountSteppers27549 = -1; if (typeof(LeadingZeros27549)=="undefined") LeadingZeros27549 = true; CountSteppers27549 = Math.ceil(CountSteppers27549); if (CountSteppers27549 == 0) CountActives27549 = false; var SetTimeOutPeriods27549 = (Math.abs(CountSteppers27549)-1)*1000 + 990; puti(BackColors27549, ForeColors27549); var dthens27549 = new Date(TargetDates27549); var dnows27549 = new Date("05/13/2025 7:55:26 AM"); if(CountSteppers27549>0) ddiffs27549 = new Date(dnows27549-dthens27549); else ddiffs27549 = new Date(dthens27549-dnows27549); gsecss27549 = Math.floor(ddiffs27549.valueOf()/1000); CountBacks27549(gsecss27549);