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 (LeadingZeros32163 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32163(secs) { if (secs < 0) { document.getElementById("cntdwns32163").innerHTML = FinishMessages32163; return; } DisplayStrs32163 = DisplayFormats32163.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32163 = DisplayStrs32163.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32163 = DisplayStrs32163.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32163 = DisplayStrs32163.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32163").innerHTML = DisplayStrs32163; if (CountActives32163) //alert(SetTimeOutPeriods32163); setTimeout("CountBacks32163(" + (secs+CountSteppers32163) + ")", SetTimeOutPeriods32163); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32163)=="undefined") BackColors32163 = ""; if (typeof(ForeColors32163)=="undefined") ForeColors32163= "white"; if (typeof(TargetDates32163)=="undefined") TargetDates32163 = "06/21/2025 10:00:00 PM"; if (typeof(DisplayFormats32163)=="undefined") DisplayFormats32163 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32163)=="undefined") CountActives32163 = true; if (typeof(FinishMessages32163)=="undefined") FinishMessages32163 = ""; if (typeof(CountSteppers32163)!="number") CountSteppers32163 = -1; if (typeof(LeadingZeros32163)=="undefined") LeadingZeros32163 = true; CountSteppers32163 = Math.ceil(CountSteppers32163); if (CountSteppers32163 == 0) CountActives32163 = false; var SetTimeOutPeriods32163 = (Math.abs(CountSteppers32163)-1)*1000 + 990; puti(BackColors32163, ForeColors32163); var dthens32163 = new Date(TargetDates32163); var dnows32163 = new Date("06/19/2025 1:41:08 PM"); if(CountSteppers32163>0) ddiffs32163 = new Date(dnows32163-dthens32163); else ddiffs32163 = new Date(dthens32163-dnows32163); gsecss32163 = Math.floor(ddiffs32163.valueOf()/1000); CountBacks32163(gsecss32163);