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 (LeadingZeros31792 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31792(secs) { if (secs < 0) { document.getElementById("cntdwns31792").innerHTML = FinishMessages31792; return; } DisplayStrs31792 = DisplayFormats31792.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31792 = DisplayStrs31792.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31792 = DisplayStrs31792.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31792 = DisplayStrs31792.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31792").innerHTML = DisplayStrs31792; if (CountActives31792) //alert(SetTimeOutPeriods31792); setTimeout("CountBacks31792(" + (secs+CountSteppers31792) + ")", SetTimeOutPeriods31792); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31792)=="undefined") BackColors31792 = ""; if (typeof(ForeColors31792)=="undefined") ForeColors31792= "white"; if (typeof(TargetDates31792)=="undefined") TargetDates31792 = "02/23/2025 10:00:00 PM"; if (typeof(DisplayFormats31792)=="undefined") DisplayFormats31792 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31792)=="undefined") CountActives31792 = true; if (typeof(FinishMessages31792)=="undefined") FinishMessages31792 = ""; if (typeof(CountSteppers31792)!="number") CountSteppers31792 = -1; if (typeof(LeadingZeros31792)=="undefined") LeadingZeros31792 = true; CountSteppers31792 = Math.ceil(CountSteppers31792); if (CountSteppers31792 == 0) CountActives31792 = false; var SetTimeOutPeriods31792 = (Math.abs(CountSteppers31792)-1)*1000 + 990; puti(BackColors31792, ForeColors31792); var dthens31792 = new Date(TargetDates31792); var dnows31792 = new Date("02/22/2025 3:26:27 AM"); if(CountSteppers31792>0) ddiffs31792 = new Date(dnows31792-dthens31792); else ddiffs31792 = new Date(dthens31792-dnows31792); gsecss31792 = Math.floor(ddiffs31792.valueOf()/1000); CountBacks31792(gsecss31792);