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 (LeadingZeros32059 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32059(secs) { if (secs < 0) { document.getElementById("cntdwns32059").innerHTML = FinishMessages32059; return; } DisplayStrs32059 = DisplayFormats32059.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32059 = DisplayStrs32059.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32059 = DisplayStrs32059.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32059 = DisplayStrs32059.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32059").innerHTML = DisplayStrs32059; if (CountActives32059) //alert(SetTimeOutPeriods32059); setTimeout("CountBacks32059(" + (secs+CountSteppers32059) + ")", SetTimeOutPeriods32059); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32059)=="undefined") BackColors32059 = ""; if (typeof(ForeColors32059)=="undefined") ForeColors32059= "white"; if (typeof(TargetDates32059)=="undefined") TargetDates32059 = "03/29/2025 10:00:00 PM"; if (typeof(DisplayFormats32059)=="undefined") DisplayFormats32059 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32059)=="undefined") CountActives32059 = true; if (typeof(FinishMessages32059)=="undefined") FinishMessages32059 = ""; if (typeof(CountSteppers32059)!="number") CountSteppers32059 = -1; if (typeof(LeadingZeros32059)=="undefined") LeadingZeros32059 = true; CountSteppers32059 = Math.ceil(CountSteppers32059); if (CountSteppers32059 == 0) CountActives32059 = false; var SetTimeOutPeriods32059 = (Math.abs(CountSteppers32059)-1)*1000 + 990; puti(BackColors32059, ForeColors32059); var dthens32059 = new Date(TargetDates32059); var dnows32059 = new Date("03/29/2025 3:10:11 PM"); if(CountSteppers32059>0) ddiffs32059 = new Date(dnows32059-dthens32059); else ddiffs32059 = new Date(dthens32059-dnows32059); gsecss32059 = Math.floor(ddiffs32059.valueOf()/1000); CountBacks32059(gsecss32059);