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 (LeadingZeros32212 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32212(secs) { if (secs < 0) { document.getElementById("cntdwns32212").innerHTML = FinishMessages32212; return; } DisplayStrs32212 = DisplayFormats32212.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32212 = DisplayStrs32212.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32212 = DisplayStrs32212.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32212 = DisplayStrs32212.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32212").innerHTML = DisplayStrs32212; if (CountActives32212) //alert(SetTimeOutPeriods32212); setTimeout("CountBacks32212(" + (secs+CountSteppers32212) + ")", SetTimeOutPeriods32212); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32212)=="undefined") BackColors32212 = ""; if (typeof(ForeColors32212)=="undefined") ForeColors32212= "white"; if (typeof(TargetDates32212)=="undefined") TargetDates32212 = "04/18/2025 10:00:00 PM"; if (typeof(DisplayFormats32212)=="undefined") DisplayFormats32212 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32212)=="undefined") CountActives32212 = true; if (typeof(FinishMessages32212)=="undefined") FinishMessages32212 = ""; if (typeof(CountSteppers32212)!="number") CountSteppers32212 = -1; if (typeof(LeadingZeros32212)=="undefined") LeadingZeros32212 = true; CountSteppers32212 = Math.ceil(CountSteppers32212); if (CountSteppers32212 == 0) CountActives32212 = false; var SetTimeOutPeriods32212 = (Math.abs(CountSteppers32212)-1)*1000 + 990; puti(BackColors32212, ForeColors32212); var dthens32212 = new Date(TargetDates32212); var dnows32212 = new Date("04/19/2025 2:08:37 AM"); if(CountSteppers32212>0) ddiffs32212 = new Date(dnows32212-dthens32212); else ddiffs32212 = new Date(dthens32212-dnows32212); gsecss32212 = Math.floor(ddiffs32212.valueOf()/1000); CountBacks32212(gsecss32212);