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 (LeadingZeros31785 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31785(secs) { if (secs < 0) { document.getElementById("cntdwns31785").innerHTML = FinishMessages31785; return; } DisplayStrs31785 = DisplayFormats31785.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31785 = DisplayStrs31785.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31785 = DisplayStrs31785.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31785 = DisplayStrs31785.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31785").innerHTML = DisplayStrs31785; if (CountActives31785) //alert(SetTimeOutPeriods31785); setTimeout("CountBacks31785(" + (secs+CountSteppers31785) + ")", SetTimeOutPeriods31785); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31785)=="undefined") BackColors31785 = ""; if (typeof(ForeColors31785)=="undefined") ForeColors31785= "white"; if (typeof(TargetDates31785)=="undefined") TargetDates31785 = "02/11/2025 10:00:00 PM"; if (typeof(DisplayFormats31785)=="undefined") DisplayFormats31785 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31785)=="undefined") CountActives31785 = true; if (typeof(FinishMessages31785)=="undefined") FinishMessages31785 = ""; if (typeof(CountSteppers31785)!="number") CountSteppers31785 = -1; if (typeof(LeadingZeros31785)=="undefined") LeadingZeros31785 = true; CountSteppers31785 = Math.ceil(CountSteppers31785); if (CountSteppers31785 == 0) CountActives31785 = false; var SetTimeOutPeriods31785 = (Math.abs(CountSteppers31785)-1)*1000 + 990; puti(BackColors31785, ForeColors31785); var dthens31785 = new Date(TargetDates31785); var dnows31785 = new Date("03/14/2025 6:58:13 AM"); if(CountSteppers31785>0) ddiffs31785 = new Date(dnows31785-dthens31785); else ddiffs31785 = new Date(dthens31785-dnows31785); gsecss31785 = Math.floor(ddiffs31785.valueOf()/1000); CountBacks31785(gsecss31785);