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 (LeadingZeros32671 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32671(secs) { if (secs < 0) { document.getElementById("cntdwns32671").innerHTML = FinishMessages32671; return; } DisplayStrs32671 = DisplayFormats32671.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32671 = DisplayStrs32671.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32671 = DisplayStrs32671.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32671 = DisplayStrs32671.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32671").innerHTML = DisplayStrs32671; if (CountActives32671) //alert(SetTimeOutPeriods32671); setTimeout("CountBacks32671(" + (secs+CountSteppers32671) + ")", SetTimeOutPeriods32671); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32671)=="undefined") BackColors32671 = ""; if (typeof(ForeColors32671)=="undefined") ForeColors32671= "white"; if (typeof(TargetDates32671)=="undefined") TargetDates32671 = "08/12/2025 9:00:00 PM"; if (typeof(DisplayFormats32671)=="undefined") DisplayFormats32671 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32671)=="undefined") CountActives32671 = true; if (typeof(FinishMessages32671)=="undefined") FinishMessages32671 = ""; if (typeof(CountSteppers32671)!="number") CountSteppers32671 = -1; if (typeof(LeadingZeros32671)=="undefined") LeadingZeros32671 = true; CountSteppers32671 = Math.ceil(CountSteppers32671); if (CountSteppers32671 == 0) CountActives32671 = false; var SetTimeOutPeriods32671 = (Math.abs(CountSteppers32671)-1)*1000 + 990; puti(BackColors32671, ForeColors32671); var dthens32671 = new Date(TargetDates32671); var dnows32671 = new Date("08/12/2025 4:09:59 PM"); if(CountSteppers32671>0) ddiffs32671 = new Date(dnows32671-dthens32671); else ddiffs32671 = new Date(dthens32671-dnows32671); gsecss32671 = Math.floor(ddiffs32671.valueOf()/1000); CountBacks32671(gsecss32671);