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 (LeadingZeros32092 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32092(secs) { if (secs < 0) { document.getElementById("cntdwns32092").innerHTML = FinishMessages32092; return; } DisplayStrs32092 = DisplayFormats32092.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32092 = DisplayStrs32092.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32092 = DisplayStrs32092.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32092 = DisplayStrs32092.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32092").innerHTML = DisplayStrs32092; if (CountActives32092) //alert(SetTimeOutPeriods32092); setTimeout("CountBacks32092(" + (secs+CountSteppers32092) + ")", SetTimeOutPeriods32092); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32092)=="undefined") BackColors32092 = ""; if (typeof(ForeColors32092)=="undefined") ForeColors32092= "white"; if (typeof(TargetDates32092)=="undefined") TargetDates32092 = "04/11/2025 10:00:00 PM"; if (typeof(DisplayFormats32092)=="undefined") DisplayFormats32092 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32092)=="undefined") CountActives32092 = true; if (typeof(FinishMessages32092)=="undefined") FinishMessages32092 = ""; if (typeof(CountSteppers32092)!="number") CountSteppers32092 = -1; if (typeof(LeadingZeros32092)=="undefined") LeadingZeros32092 = true; CountSteppers32092 = Math.ceil(CountSteppers32092); if (CountSteppers32092 == 0) CountActives32092 = false; var SetTimeOutPeriods32092 = (Math.abs(CountSteppers32092)-1)*1000 + 990; puti(BackColors32092, ForeColors32092); var dthens32092 = new Date(TargetDates32092); var dnows32092 = new Date("04/17/2025 4:06:45 AM"); if(CountSteppers32092>0) ddiffs32092 = new Date(dnows32092-dthens32092); else ddiffs32092 = new Date(dthens32092-dnows32092); gsecss32092 = Math.floor(ddiffs32092.valueOf()/1000); CountBacks32092(gsecss32092);