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 (LeadingZeros32089 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32089(secs) { if (secs < 0) { document.getElementById("cntdwns32089").innerHTML = FinishMessages32089; return; } DisplayStrs32089 = DisplayFormats32089.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32089 = DisplayStrs32089.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32089 = DisplayStrs32089.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32089 = DisplayStrs32089.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32089").innerHTML = DisplayStrs32089; if (CountActives32089) //alert(SetTimeOutPeriods32089); setTimeout("CountBacks32089(" + (secs+CountSteppers32089) + ")", SetTimeOutPeriods32089); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32089)=="undefined") BackColors32089 = ""; if (typeof(ForeColors32089)=="undefined") ForeColors32089= "white"; if (typeof(TargetDates32089)=="undefined") TargetDates32089 = "04/11/2025 10:00:00 PM"; if (typeof(DisplayFormats32089)=="undefined") DisplayFormats32089 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32089)=="undefined") CountActives32089 = true; if (typeof(FinishMessages32089)=="undefined") FinishMessages32089 = ""; if (typeof(CountSteppers32089)!="number") CountSteppers32089 = -1; if (typeof(LeadingZeros32089)=="undefined") LeadingZeros32089 = true; CountSteppers32089 = Math.ceil(CountSteppers32089); if (CountSteppers32089 == 0) CountActives32089 = false; var SetTimeOutPeriods32089 = (Math.abs(CountSteppers32089)-1)*1000 + 990; puti(BackColors32089, ForeColors32089); var dthens32089 = new Date(TargetDates32089); var dnows32089 = new Date("04/17/2025 5:36:22 AM"); if(CountSteppers32089>0) ddiffs32089 = new Date(dnows32089-dthens32089); else ddiffs32089 = new Date(dthens32089-dnows32089); gsecss32089 = Math.floor(ddiffs32089.valueOf()/1000); CountBacks32089(gsecss32089);