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 (LeadingZeros32639 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32639(secs) { if (secs < 0) { document.getElementById("cntdwns32639").innerHTML = FinishMessages32639; return; } DisplayStrs32639 = DisplayFormats32639.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32639 = DisplayStrs32639.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32639 = DisplayStrs32639.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32639 = DisplayStrs32639.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32639").innerHTML = DisplayStrs32639; if (CountActives32639) //alert(SetTimeOutPeriods32639); setTimeout("CountBacks32639(" + (secs+CountSteppers32639) + ")", SetTimeOutPeriods32639); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32639)=="undefined") BackColors32639 = ""; if (typeof(ForeColors32639)=="undefined") ForeColors32639= "white"; if (typeof(TargetDates32639)=="undefined") TargetDates32639 = "08/14/2025 10:00:00 PM"; if (typeof(DisplayFormats32639)=="undefined") DisplayFormats32639 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32639)=="undefined") CountActives32639 = true; if (typeof(FinishMessages32639)=="undefined") FinishMessages32639 = ""; if (typeof(CountSteppers32639)!="number") CountSteppers32639 = -1; if (typeof(LeadingZeros32639)=="undefined") LeadingZeros32639 = true; CountSteppers32639 = Math.ceil(CountSteppers32639); if (CountSteppers32639 == 0) CountActives32639 = false; var SetTimeOutPeriods32639 = (Math.abs(CountSteppers32639)-1)*1000 + 990; puti(BackColors32639, ForeColors32639); var dthens32639 = new Date(TargetDates32639); var dnows32639 = new Date("08/11/2025 12:57:09 PM"); if(CountSteppers32639>0) ddiffs32639 = new Date(dnows32639-dthens32639); else ddiffs32639 = new Date(dthens32639-dnows32639); gsecss32639 = Math.floor(ddiffs32639.valueOf()/1000); CountBacks32639(gsecss32639);