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 (LeadingZeros32199 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32199(secs) { if (secs < 0) { document.getElementById("cntdwns32199").innerHTML = FinishMessages32199; return; } DisplayStrs32199 = DisplayFormats32199.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32199 = DisplayStrs32199.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32199 = DisplayStrs32199.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32199 = DisplayStrs32199.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32199").innerHTML = DisplayStrs32199; if (CountActives32199) //alert(SetTimeOutPeriods32199); setTimeout("CountBacks32199(" + (secs+CountSteppers32199) + ")", SetTimeOutPeriods32199); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32199)=="undefined") BackColors32199 = ""; if (typeof(ForeColors32199)=="undefined") ForeColors32199= "white"; if (typeof(TargetDates32199)=="undefined") TargetDates32199 = "04/14/2025 10:00:00 PM"; if (typeof(DisplayFormats32199)=="undefined") DisplayFormats32199 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32199)=="undefined") CountActives32199 = true; if (typeof(FinishMessages32199)=="undefined") FinishMessages32199 = ""; if (typeof(CountSteppers32199)!="number") CountSteppers32199 = -1; if (typeof(LeadingZeros32199)=="undefined") LeadingZeros32199 = true; CountSteppers32199 = Math.ceil(CountSteppers32199); if (CountSteppers32199 == 0) CountActives32199 = false; var SetTimeOutPeriods32199 = (Math.abs(CountSteppers32199)-1)*1000 + 990; puti(BackColors32199, ForeColors32199); var dthens32199 = new Date(TargetDates32199); var dnows32199 = new Date("04/18/2025 6:43:46 PM"); if(CountSteppers32199>0) ddiffs32199 = new Date(dnows32199-dthens32199); else ddiffs32199 = new Date(dthens32199-dnows32199); gsecss32199 = Math.floor(ddiffs32199.valueOf()/1000); CountBacks32199(gsecss32199);