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 (LeadingZeros29192 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks29192(secs) { if (secs < 0) { document.getElementById("cntdwns29192").innerHTML = FinishMessages29192; return; } DisplayStrs29192 = DisplayFormats29192.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs29192 = DisplayStrs29192.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs29192 = DisplayStrs29192.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs29192 = DisplayStrs29192.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns29192").innerHTML = DisplayStrs29192; if (CountActives29192) //alert(SetTimeOutPeriods29192); setTimeout("CountBacks29192(" + (secs+CountSteppers29192) + ")", SetTimeOutPeriods29192); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors29192)=="undefined") BackColors29192 = ""; if (typeof(ForeColors29192)=="undefined") ForeColors29192= "white"; if (typeof(TargetDates29192)=="undefined") TargetDates29192 = "09/26/2023 10:00:00 PM"; if (typeof(DisplayFormats29192)=="undefined") DisplayFormats29192 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives29192)=="undefined") CountActives29192 = true; if (typeof(FinishMessages29192)=="undefined") FinishMessages29192 = ""; if (typeof(CountSteppers29192)!="number") CountSteppers29192 = -1; if (typeof(LeadingZeros29192)=="undefined") LeadingZeros29192 = true; CountSteppers29192 = Math.ceil(CountSteppers29192); if (CountSteppers29192 == 0) CountActives29192 = false; var SetTimeOutPeriods29192 = (Math.abs(CountSteppers29192)-1)*1000 + 990; puti(BackColors29192, ForeColors29192); var dthens29192 = new Date(TargetDates29192); var dnows29192 = new Date("05/11/2025 5:40:00 PM"); if(CountSteppers29192>0) ddiffs29192 = new Date(dnows29192-dthens29192); else ddiffs29192 = new Date(dthens29192-dnows29192); gsecss29192 = Math.floor(ddiffs29192.valueOf()/1000); CountBacks29192(gsecss29192);