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 (LeadingZeros31691 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31691(secs) { if (secs < 0) { document.getElementById("cntdwns31691").innerHTML = FinishMessages31691; return; } DisplayStrs31691 = DisplayFormats31691.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31691 = DisplayStrs31691.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31691 = DisplayStrs31691.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31691 = DisplayStrs31691.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31691").innerHTML = DisplayStrs31691; if (CountActives31691) //alert(SetTimeOutPeriods31691); setTimeout("CountBacks31691(" + (secs+CountSteppers31691) + ")", SetTimeOutPeriods31691); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31691)=="undefined") BackColors31691 = ""; if (typeof(ForeColors31691)=="undefined") ForeColors31691= "white"; if (typeof(TargetDates31691)=="undefined") TargetDates31691 = "02/07/2025 10:00:00 PM"; if (typeof(DisplayFormats31691)=="undefined") DisplayFormats31691 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31691)=="undefined") CountActives31691 = true; if (typeof(FinishMessages31691)=="undefined") FinishMessages31691 = ""; if (typeof(CountSteppers31691)!="number") CountSteppers31691 = -1; if (typeof(LeadingZeros31691)=="undefined") LeadingZeros31691 = true; CountSteppers31691 = Math.ceil(CountSteppers31691); if (CountSteppers31691 == 0) CountActives31691 = false; var SetTimeOutPeriods31691 = (Math.abs(CountSteppers31691)-1)*1000 + 990; puti(BackColors31691, ForeColors31691); var dthens31691 = new Date(TargetDates31691); var dnows31691 = new Date("02/05/2025 8:53:06 AM"); if(CountSteppers31691>0) ddiffs31691 = new Date(dnows31691-dthens31691); else ddiffs31691 = new Date(dthens31691-dnows31691); gsecss31691 = Math.floor(ddiffs31691.valueOf()/1000); CountBacks31691(gsecss31691);