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 (LeadingZeros29195 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks29195(secs) { if (secs < 0) { document.getElementById("cntdwns29195").innerHTML = FinishMessages29195; return; } DisplayStrs29195 = DisplayFormats29195.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs29195 = DisplayStrs29195.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs29195 = DisplayStrs29195.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs29195 = DisplayStrs29195.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns29195").innerHTML = DisplayStrs29195; if (CountActives29195) //alert(SetTimeOutPeriods29195); setTimeout("CountBacks29195(" + (secs+CountSteppers29195) + ")", SetTimeOutPeriods29195); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors29195)=="undefined") BackColors29195 = ""; if (typeof(ForeColors29195)=="undefined") ForeColors29195= "white"; if (typeof(TargetDates29195)=="undefined") TargetDates29195 = "10/04/2023 10:00:00 PM"; if (typeof(DisplayFormats29195)=="undefined") DisplayFormats29195 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives29195)=="undefined") CountActives29195 = true; if (typeof(FinishMessages29195)=="undefined") FinishMessages29195 = ""; if (typeof(CountSteppers29195)!="number") CountSteppers29195 = -1; if (typeof(LeadingZeros29195)=="undefined") LeadingZeros29195 = true; CountSteppers29195 = Math.ceil(CountSteppers29195); if (CountSteppers29195 == 0) CountActives29195 = false; var SetTimeOutPeriods29195 = (Math.abs(CountSteppers29195)-1)*1000 + 990; puti(BackColors29195, ForeColors29195); var dthens29195 = new Date(TargetDates29195); var dnows29195 = new Date("05/09/2025 10:09:35 AM"); if(CountSteppers29195>0) ddiffs29195 = new Date(dnows29195-dthens29195); else ddiffs29195 = new Date(dthens29195-dnows29195); gsecss29195 = Math.floor(ddiffs29195.valueOf()/1000); CountBacks29195(gsecss29195);