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 (LeadingZeros32670 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32670(secs) { if (secs < 0) { document.getElementById("cntdwns32670").innerHTML = FinishMessages32670; return; } DisplayStrs32670 = DisplayFormats32670.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32670 = DisplayStrs32670.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32670 = DisplayStrs32670.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32670 = DisplayStrs32670.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32670").innerHTML = DisplayStrs32670; if (CountActives32670) //alert(SetTimeOutPeriods32670); setTimeout("CountBacks32670(" + (secs+CountSteppers32670) + ")", SetTimeOutPeriods32670); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32670)=="undefined") BackColors32670 = ""; if (typeof(ForeColors32670)=="undefined") ForeColors32670= "white"; if (typeof(TargetDates32670)=="undefined") TargetDates32670 = "08/12/2025 10:00:00 PM"; if (typeof(DisplayFormats32670)=="undefined") DisplayFormats32670 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32670)=="undefined") CountActives32670 = true; if (typeof(FinishMessages32670)=="undefined") FinishMessages32670 = ""; if (typeof(CountSteppers32670)!="number") CountSteppers32670 = -1; if (typeof(LeadingZeros32670)=="undefined") LeadingZeros32670 = true; CountSteppers32670 = Math.ceil(CountSteppers32670); if (CountSteppers32670 == 0) CountActives32670 = false; var SetTimeOutPeriods32670 = (Math.abs(CountSteppers32670)-1)*1000 + 990; puti(BackColors32670, ForeColors32670); var dthens32670 = new Date(TargetDates32670); var dnows32670 = new Date("08/12/2025 4:13:07 PM"); if(CountSteppers32670>0) ddiffs32670 = new Date(dnows32670-dthens32670); else ddiffs32670 = new Date(dthens32670-dnows32670); gsecss32670 = Math.floor(ddiffs32670.valueOf()/1000); CountBacks32670(gsecss32670);