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 (LeadingZeros32129 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32129(secs) { if (secs < 0) { document.getElementById("cntdwns32129").innerHTML = FinishMessages32129; return; } DisplayStrs32129 = DisplayFormats32129.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32129 = DisplayStrs32129.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32129 = DisplayStrs32129.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32129 = DisplayStrs32129.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32129").innerHTML = DisplayStrs32129; if (CountActives32129) //alert(SetTimeOutPeriods32129); setTimeout("CountBacks32129(" + (secs+CountSteppers32129) + ")", SetTimeOutPeriods32129); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32129)=="undefined") BackColors32129 = ""; if (typeof(ForeColors32129)=="undefined") ForeColors32129= "white"; if (typeof(TargetDates32129)=="undefined") TargetDates32129 = "04/02/2025 10:00:00 PM"; if (typeof(DisplayFormats32129)=="undefined") DisplayFormats32129 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32129)=="undefined") CountActives32129 = true; if (typeof(FinishMessages32129)=="undefined") FinishMessages32129 = ""; if (typeof(CountSteppers32129)!="number") CountSteppers32129 = -1; if (typeof(LeadingZeros32129)=="undefined") LeadingZeros32129 = true; CountSteppers32129 = Math.ceil(CountSteppers32129); if (CountSteppers32129 == 0) CountActives32129 = false; var SetTimeOutPeriods32129 = (Math.abs(CountSteppers32129)-1)*1000 + 990; puti(BackColors32129, ForeColors32129); var dthens32129 = new Date(TargetDates32129); var dnows32129 = new Date("04/02/2025 7:24:13 AM"); if(CountSteppers32129>0) ddiffs32129 = new Date(dnows32129-dthens32129); else ddiffs32129 = new Date(dthens32129-dnows32129); gsecss32129 = Math.floor(ddiffs32129.valueOf()/1000); CountBacks32129(gsecss32129);