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 (LeadingZeros32683 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32683(secs) { if (secs < 0) { document.getElementById("cntdwns32683").innerHTML = FinishMessages32683; return; } DisplayStrs32683 = DisplayFormats32683.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32683 = DisplayStrs32683.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32683 = DisplayStrs32683.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32683 = DisplayStrs32683.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32683").innerHTML = DisplayStrs32683; if (CountActives32683) //alert(SetTimeOutPeriods32683); setTimeout("CountBacks32683(" + (secs+CountSteppers32683) + ")", SetTimeOutPeriods32683); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32683)=="undefined") BackColors32683 = ""; if (typeof(ForeColors32683)=="undefined") ForeColors32683= "white"; if (typeof(TargetDates32683)=="undefined") TargetDates32683 = "08/12/2025 10:00:00 PM"; if (typeof(DisplayFormats32683)=="undefined") DisplayFormats32683 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32683)=="undefined") CountActives32683 = true; if (typeof(FinishMessages32683)=="undefined") FinishMessages32683 = ""; if (typeof(CountSteppers32683)!="number") CountSteppers32683 = -1; if (typeof(LeadingZeros32683)=="undefined") LeadingZeros32683 = true; CountSteppers32683 = Math.ceil(CountSteppers32683); if (CountSteppers32683 == 0) CountActives32683 = false; var SetTimeOutPeriods32683 = (Math.abs(CountSteppers32683)-1)*1000 + 990; puti(BackColors32683, ForeColors32683); var dthens32683 = new Date(TargetDates32683); var dnows32683 = new Date("08/13/2025 5:02:49 AM"); if(CountSteppers32683>0) ddiffs32683 = new Date(dnows32683-dthens32683); else ddiffs32683 = new Date(dthens32683-dnows32683); gsecss32683 = Math.floor(ddiffs32683.valueOf()/1000); CountBacks32683(gsecss32683);