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 (LeadingZeros32172 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32172(secs) { if (secs < 0) { document.getElementById("cntdwns32172").innerHTML = FinishMessages32172; return; } DisplayStrs32172 = DisplayFormats32172.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32172 = DisplayStrs32172.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32172 = DisplayStrs32172.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32172 = DisplayStrs32172.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32172").innerHTML = DisplayStrs32172; if (CountActives32172) //alert(SetTimeOutPeriods32172); setTimeout("CountBacks32172(" + (secs+CountSteppers32172) + ")", SetTimeOutPeriods32172); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32172)=="undefined") BackColors32172 = ""; if (typeof(ForeColors32172)=="undefined") ForeColors32172= "white"; if (typeof(TargetDates32172)=="undefined") TargetDates32172 = "04/18/2025 10:00:00 PM"; if (typeof(DisplayFormats32172)=="undefined") DisplayFormats32172 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32172)=="undefined") CountActives32172 = true; if (typeof(FinishMessages32172)=="undefined") FinishMessages32172 = ""; if (typeof(CountSteppers32172)!="number") CountSteppers32172 = -1; if (typeof(LeadingZeros32172)=="undefined") LeadingZeros32172 = true; CountSteppers32172 = Math.ceil(CountSteppers32172); if (CountSteppers32172 == 0) CountActives32172 = false; var SetTimeOutPeriods32172 = (Math.abs(CountSteppers32172)-1)*1000 + 990; puti(BackColors32172, ForeColors32172); var dthens32172 = new Date(TargetDates32172); var dnows32172 = new Date("04/19/2025 2:08:37 AM"); if(CountSteppers32172>0) ddiffs32172 = new Date(dnows32172-dthens32172); else ddiffs32172 = new Date(dthens32172-dnows32172); gsecss32172 = Math.floor(ddiffs32172.valueOf()/1000); CountBacks32172(gsecss32172);