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 (LeadingZeros32045 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32045(secs) { if (secs < 0) { document.getElementById("cntdwns32045").innerHTML = FinishMessages32045; return; } DisplayStrs32045 = DisplayFormats32045.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32045 = DisplayStrs32045.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32045 = DisplayStrs32045.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32045 = DisplayStrs32045.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32045").innerHTML = DisplayStrs32045; if (CountActives32045) //alert(SetTimeOutPeriods32045); setTimeout("CountBacks32045(" + (secs+CountSteppers32045) + ")", SetTimeOutPeriods32045); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32045)=="undefined") BackColors32045 = ""; if (typeof(ForeColors32045)=="undefined") ForeColors32045= "white"; if (typeof(TargetDates32045)=="undefined") TargetDates32045 = "04/14/2025 11:00:00 PM"; if (typeof(DisplayFormats32045)=="undefined") DisplayFormats32045 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32045)=="undefined") CountActives32045 = true; if (typeof(FinishMessages32045)=="undefined") FinishMessages32045 = ""; if (typeof(CountSteppers32045)!="number") CountSteppers32045 = -1; if (typeof(LeadingZeros32045)=="undefined") LeadingZeros32045 = true; CountSteppers32045 = Math.ceil(CountSteppers32045); if (CountSteppers32045 == 0) CountActives32045 = false; var SetTimeOutPeriods32045 = (Math.abs(CountSteppers32045)-1)*1000 + 990; puti(BackColors32045, ForeColors32045); var dthens32045 = new Date(TargetDates32045); var dnows32045 = new Date("04/18/2025 9:00:22 PM"); if(CountSteppers32045>0) ddiffs32045 = new Date(dnows32045-dthens32045); else ddiffs32045 = new Date(dthens32045-dnows32045); gsecss32045 = Math.floor(ddiffs32045.valueOf()/1000); CountBacks32045(gsecss32045);