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 (LeadingZeros31898 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31898(secs) { if (secs < 0) { document.getElementById("cntdwns31898").innerHTML = FinishMessages31898; return; } DisplayStrs31898 = DisplayFormats31898.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31898 = DisplayStrs31898.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31898 = DisplayStrs31898.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31898 = DisplayStrs31898.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31898").innerHTML = DisplayStrs31898; if (CountActives31898) //alert(SetTimeOutPeriods31898); setTimeout("CountBacks31898(" + (secs+CountSteppers31898) + ")", SetTimeOutPeriods31898); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31898)=="undefined") BackColors31898 = ""; if (typeof(ForeColors31898)=="undefined") ForeColors31898= "white"; if (typeof(TargetDates31898)=="undefined") TargetDates31898 = "04/03/2025 11:00:00 PM"; if (typeof(DisplayFormats31898)=="undefined") DisplayFormats31898 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31898)=="undefined") CountActives31898 = true; if (typeof(FinishMessages31898)=="undefined") FinishMessages31898 = ""; if (typeof(CountSteppers31898)!="number") CountSteppers31898 = -1; if (typeof(LeadingZeros31898)=="undefined") LeadingZeros31898 = true; CountSteppers31898 = Math.ceil(CountSteppers31898); if (CountSteppers31898 == 0) CountActives31898 = false; var SetTimeOutPeriods31898 = (Math.abs(CountSteppers31898)-1)*1000 + 990; puti(BackColors31898, ForeColors31898); var dthens31898 = new Date(TargetDates31898); var dnows31898 = new Date("04/02/2025 2:21:39 AM"); if(CountSteppers31898>0) ddiffs31898 = new Date(dnows31898-dthens31898); else ddiffs31898 = new Date(dthens31898-dnows31898); gsecss31898 = Math.floor(ddiffs31898.valueOf()/1000); CountBacks31898(gsecss31898);