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 (LeadingZeros29491 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks29491(secs) { if (secs < 0) { document.getElementById("cntdwns29491").innerHTML = FinishMessages29491; return; } DisplayStrs29491 = DisplayFormats29491.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs29491 = DisplayStrs29491.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs29491 = DisplayStrs29491.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs29491 = DisplayStrs29491.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns29491").innerHTML = DisplayStrs29491; if (CountActives29491) //alert(SetTimeOutPeriods29491); setTimeout("CountBacks29491(" + (secs+CountSteppers29491) + ")", SetTimeOutPeriods29491); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors29491)=="undefined") BackColors29491 = ""; if (typeof(ForeColors29491)=="undefined") ForeColors29491= "white"; if (typeof(TargetDates29491)=="undefined") TargetDates29491 = "12/04/2023 10:00:00 PM"; if (typeof(DisplayFormats29491)=="undefined") DisplayFormats29491 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives29491)=="undefined") CountActives29491 = true; if (typeof(FinishMessages29491)=="undefined") FinishMessages29491 = ""; if (typeof(CountSteppers29491)!="number") CountSteppers29491 = -1; if (typeof(LeadingZeros29491)=="undefined") LeadingZeros29491 = true; CountSteppers29491 = Math.ceil(CountSteppers29491); if (CountSteppers29491 == 0) CountActives29491 = false; var SetTimeOutPeriods29491 = (Math.abs(CountSteppers29491)-1)*1000 + 990; puti(BackColors29491, ForeColors29491); var dthens29491 = new Date(TargetDates29491); var dnows29491 = new Date("05/11/2025 10:58:33 AM"); if(CountSteppers29491>0) ddiffs29491 = new Date(dnows29491-dthens29491); else ddiffs29491 = new Date(dthens29491-dnows29491); gsecss29491 = Math.floor(ddiffs29491.valueOf()/1000); CountBacks29491(gsecss29491);