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 (LeadingZeros31395 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31395(secs) { if (secs < 0) { document.getElementById("cntdwns31395").innerHTML = FinishMessages31395; return; } DisplayStrs31395 = DisplayFormats31395.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31395 = DisplayStrs31395.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31395 = DisplayStrs31395.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31395 = DisplayStrs31395.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31395").innerHTML = DisplayStrs31395; if (CountActives31395) //alert(SetTimeOutPeriods31395); setTimeout("CountBacks31395(" + (secs+CountSteppers31395) + ")", SetTimeOutPeriods31395); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31395)=="undefined") BackColors31395 = ""; if (typeof(ForeColors31395)=="undefined") ForeColors31395= "white"; if (typeof(TargetDates31395)=="undefined") TargetDates31395 = "02/03/2025 10:00:00 PM"; if (typeof(DisplayFormats31395)=="undefined") DisplayFormats31395 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31395)=="undefined") CountActives31395 = true; if (typeof(FinishMessages31395)=="undefined") FinishMessages31395 = ""; if (typeof(CountSteppers31395)!="number") CountSteppers31395 = -1; if (typeof(LeadingZeros31395)=="undefined") LeadingZeros31395 = true; CountSteppers31395 = Math.ceil(CountSteppers31395); if (CountSteppers31395 == 0) CountActives31395 = false; var SetTimeOutPeriods31395 = (Math.abs(CountSteppers31395)-1)*1000 + 990; puti(BackColors31395, ForeColors31395); var dthens31395 = new Date(TargetDates31395); var dnows31395 = new Date("02/01/2025 7:37:15 AM"); if(CountSteppers31395>0) ddiffs31395 = new Date(dnows31395-dthens31395); else ddiffs31395 = new Date(dthens31395-dnows31395); gsecss31395 = Math.floor(ddiffs31395.valueOf()/1000); CountBacks31395(gsecss31395);