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 (LeadingZeros32177 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32177(secs) { if (secs < 0) { document.getElementById("cntdwns32177").innerHTML = FinishMessages32177; return; } DisplayStrs32177 = DisplayFormats32177.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32177 = DisplayStrs32177.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32177 = DisplayStrs32177.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32177 = DisplayStrs32177.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32177").innerHTML = DisplayStrs32177; if (CountActives32177) //alert(SetTimeOutPeriods32177); setTimeout("CountBacks32177(" + (secs+CountSteppers32177) + ")", SetTimeOutPeriods32177); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32177)=="undefined") BackColors32177 = ""; if (typeof(ForeColors32177)=="undefined") ForeColors32177= "white"; if (typeof(TargetDates32177)=="undefined") TargetDates32177 = "04/18/2025 10:00:00 PM"; if (typeof(DisplayFormats32177)=="undefined") DisplayFormats32177 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32177)=="undefined") CountActives32177 = true; if (typeof(FinishMessages32177)=="undefined") FinishMessages32177 = ""; if (typeof(CountSteppers32177)!="number") CountSteppers32177 = -1; if (typeof(LeadingZeros32177)=="undefined") LeadingZeros32177 = true; CountSteppers32177 = Math.ceil(CountSteppers32177); if (CountSteppers32177 == 0) CountActives32177 = false; var SetTimeOutPeriods32177 = (Math.abs(CountSteppers32177)-1)*1000 + 990; puti(BackColors32177, ForeColors32177); var dthens32177 = new Date(TargetDates32177); var dnows32177 = new Date("04/16/2025 11:39:59 AM"); if(CountSteppers32177>0) ddiffs32177 = new Date(dnows32177-dthens32177); else ddiffs32177 = new Date(dthens32177-dnows32177); gsecss32177 = Math.floor(ddiffs32177.valueOf()/1000); CountBacks32177(gsecss32177);