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 (LeadingZeros32049 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32049(secs) { if (secs < 0) { document.getElementById("cntdwns32049").innerHTML = FinishMessages32049; return; } DisplayStrs32049 = DisplayFormats32049.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32049 = DisplayStrs32049.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32049 = DisplayStrs32049.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32049 = DisplayStrs32049.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32049").innerHTML = DisplayStrs32049; if (CountActives32049) //alert(SetTimeOutPeriods32049); setTimeout("CountBacks32049(" + (secs+CountSteppers32049) + ")", SetTimeOutPeriods32049); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32049)=="undefined") BackColors32049 = ""; if (typeof(ForeColors32049)=="undefined") ForeColors32049= "white"; if (typeof(TargetDates32049)=="undefined") TargetDates32049 = "04/14/2025 11:00:00 PM"; if (typeof(DisplayFormats32049)=="undefined") DisplayFormats32049 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32049)=="undefined") CountActives32049 = true; if (typeof(FinishMessages32049)=="undefined") FinishMessages32049 = ""; if (typeof(CountSteppers32049)!="number") CountSteppers32049 = -1; if (typeof(LeadingZeros32049)=="undefined") LeadingZeros32049 = true; CountSteppers32049 = Math.ceil(CountSteppers32049); if (CountSteppers32049 == 0) CountActives32049 = false; var SetTimeOutPeriods32049 = (Math.abs(CountSteppers32049)-1)*1000 + 990; puti(BackColors32049, ForeColors32049); var dthens32049 = new Date(TargetDates32049); var dnows32049 = new Date("04/18/2025 9:00:22 PM"); if(CountSteppers32049>0) ddiffs32049 = new Date(dnows32049-dthens32049); else ddiffs32049 = new Date(dthens32049-dnows32049); gsecss32049 = Math.floor(ddiffs32049.valueOf()/1000); CountBacks32049(gsecss32049);