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 (LeadingZeros32208 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32208(secs) { if (secs < 0) { document.getElementById("cntdwns32208").innerHTML = FinishMessages32208; return; } DisplayStrs32208 = DisplayFormats32208.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32208 = DisplayStrs32208.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32208 = DisplayStrs32208.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32208 = DisplayStrs32208.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32208").innerHTML = DisplayStrs32208; if (CountActives32208) //alert(SetTimeOutPeriods32208); setTimeout("CountBacks32208(" + (secs+CountSteppers32208) + ")", SetTimeOutPeriods32208); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32208)=="undefined") BackColors32208 = ""; if (typeof(ForeColors32208)=="undefined") ForeColors32208= "white"; if (typeof(TargetDates32208)=="undefined") TargetDates32208 = "04/18/2025 10:00:00 PM"; if (typeof(DisplayFormats32208)=="undefined") DisplayFormats32208 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32208)=="undefined") CountActives32208 = true; if (typeof(FinishMessages32208)=="undefined") FinishMessages32208 = ""; if (typeof(CountSteppers32208)!="number") CountSteppers32208 = -1; if (typeof(LeadingZeros32208)=="undefined") LeadingZeros32208 = true; CountSteppers32208 = Math.ceil(CountSteppers32208); if (CountSteppers32208 == 0) CountActives32208 = false; var SetTimeOutPeriods32208 = (Math.abs(CountSteppers32208)-1)*1000 + 990; puti(BackColors32208, ForeColors32208); var dthens32208 = new Date(TargetDates32208); var dnows32208 = new Date("04/16/2025 1:58:39 AM"); if(CountSteppers32208>0) ddiffs32208 = new Date(dnows32208-dthens32208); else ddiffs32208 = new Date(dthens32208-dnows32208); gsecss32208 = Math.floor(ddiffs32208.valueOf()/1000); CountBacks32208(gsecss32208);