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 (LeadingZeros32171 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32171(secs) { if (secs < 0) { document.getElementById("cntdwns32171").innerHTML = FinishMessages32171; return; } DisplayStrs32171 = DisplayFormats32171.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32171 = DisplayStrs32171.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32171 = DisplayStrs32171.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32171 = DisplayStrs32171.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32171").innerHTML = DisplayStrs32171; if (CountActives32171) //alert(SetTimeOutPeriods32171); setTimeout("CountBacks32171(" + (secs+CountSteppers32171) + ")", SetTimeOutPeriods32171); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32171)=="undefined") BackColors32171 = ""; if (typeof(ForeColors32171)=="undefined") ForeColors32171= "white"; if (typeof(TargetDates32171)=="undefined") TargetDates32171 = "04/18/2025 10:00:00 PM"; if (typeof(DisplayFormats32171)=="undefined") DisplayFormats32171 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32171)=="undefined") CountActives32171 = true; if (typeof(FinishMessages32171)=="undefined") FinishMessages32171 = ""; if (typeof(CountSteppers32171)!="number") CountSteppers32171 = -1; if (typeof(LeadingZeros32171)=="undefined") LeadingZeros32171 = true; CountSteppers32171 = Math.ceil(CountSteppers32171); if (CountSteppers32171 == 0) CountActives32171 = false; var SetTimeOutPeriods32171 = (Math.abs(CountSteppers32171)-1)*1000 + 990; puti(BackColors32171, ForeColors32171); var dthens32171 = new Date(TargetDates32171); var dnows32171 = new Date("04/19/2025 2:08:36 AM"); if(CountSteppers32171>0) ddiffs32171 = new Date(dnows32171-dthens32171); else ddiffs32171 = new Date(dthens32171-dnows32171); gsecss32171 = Math.floor(ddiffs32171.valueOf()/1000); CountBacks32171(gsecss32171);