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 (LeadingZeros32070 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32070(secs) { if (secs < 0) { document.getElementById("cntdwns32070").innerHTML = FinishMessages32070; return; } DisplayStrs32070 = DisplayFormats32070.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32070 = DisplayStrs32070.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32070 = DisplayStrs32070.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32070 = DisplayStrs32070.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32070").innerHTML = DisplayStrs32070; if (CountActives32070) //alert(SetTimeOutPeriods32070); setTimeout("CountBacks32070(" + (secs+CountSteppers32070) + ")", SetTimeOutPeriods32070); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32070)=="undefined") BackColors32070 = ""; if (typeof(ForeColors32070)=="undefined") ForeColors32070= "white"; if (typeof(TargetDates32070)=="undefined") TargetDates32070 = "04/27/2025 10:00:00 PM"; if (typeof(DisplayFormats32070)=="undefined") DisplayFormats32070 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32070)=="undefined") CountActives32070 = true; if (typeof(FinishMessages32070)=="undefined") FinishMessages32070 = ""; if (typeof(CountSteppers32070)!="number") CountSteppers32070 = -1; if (typeof(LeadingZeros32070)=="undefined") LeadingZeros32070 = true; CountSteppers32070 = Math.ceil(CountSteppers32070); if (CountSteppers32070 == 0) CountActives32070 = false; var SetTimeOutPeriods32070 = (Math.abs(CountSteppers32070)-1)*1000 + 990; puti(BackColors32070, ForeColors32070); var dthens32070 = new Date(TargetDates32070); var dnows32070 = new Date("04/25/2025 10:03:02 AM"); if(CountSteppers32070>0) ddiffs32070 = new Date(dnows32070-dthens32070); else ddiffs32070 = new Date(dthens32070-dnows32070); gsecss32070 = Math.floor(ddiffs32070.valueOf()/1000); CountBacks32070(gsecss32070);