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 (LeadingZeros31765 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31765(secs) { if (secs < 0) { document.getElementById("cntdwns31765").innerHTML = FinishMessages31765; return; } DisplayStrs31765 = DisplayFormats31765.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31765 = DisplayStrs31765.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31765 = DisplayStrs31765.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31765 = DisplayStrs31765.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31765").innerHTML = DisplayStrs31765; if (CountActives31765) //alert(SetTimeOutPeriods31765); setTimeout("CountBacks31765(" + (secs+CountSteppers31765) + ")", SetTimeOutPeriods31765); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31765)=="undefined") BackColors31765 = ""; if (typeof(ForeColors31765)=="undefined") ForeColors31765= "white"; if (typeof(TargetDates31765)=="undefined") TargetDates31765 = "02/25/2025 10:00:00 PM"; if (typeof(DisplayFormats31765)=="undefined") DisplayFormats31765 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31765)=="undefined") CountActives31765 = true; if (typeof(FinishMessages31765)=="undefined") FinishMessages31765 = ""; if (typeof(CountSteppers31765)!="number") CountSteppers31765 = -1; if (typeof(LeadingZeros31765)=="undefined") LeadingZeros31765 = true; CountSteppers31765 = Math.ceil(CountSteppers31765); if (CountSteppers31765 == 0) CountActives31765 = false; var SetTimeOutPeriods31765 = (Math.abs(CountSteppers31765)-1)*1000 + 990; puti(BackColors31765, ForeColors31765); var dthens31765 = new Date(TargetDates31765); var dnows31765 = new Date("02/22/2025 9:22:56 PM"); if(CountSteppers31765>0) ddiffs31765 = new Date(dnows31765-dthens31765); else ddiffs31765 = new Date(dthens31765-dnows31765); gsecss31765 = Math.floor(ddiffs31765.valueOf()/1000); CountBacks31765(gsecss31765);