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 (LeadingZeros31761 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31761(secs) { if (secs < 0) { document.getElementById("cntdwns31761").innerHTML = FinishMessages31761; return; } DisplayStrs31761 = DisplayFormats31761.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31761 = DisplayStrs31761.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31761 = DisplayStrs31761.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31761 = DisplayStrs31761.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31761").innerHTML = DisplayStrs31761; if (CountActives31761) //alert(SetTimeOutPeriods31761); setTimeout("CountBacks31761(" + (secs+CountSteppers31761) + ")", SetTimeOutPeriods31761); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31761)=="undefined") BackColors31761 = ""; if (typeof(ForeColors31761)=="undefined") ForeColors31761= "white"; if (typeof(TargetDates31761)=="undefined") TargetDates31761 = "03/07/2025 10:00:00 PM"; if (typeof(DisplayFormats31761)=="undefined") DisplayFormats31761 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31761)=="undefined") CountActives31761 = true; if (typeof(FinishMessages31761)=="undefined") FinishMessages31761 = ""; if (typeof(CountSteppers31761)!="number") CountSteppers31761 = -1; if (typeof(LeadingZeros31761)=="undefined") LeadingZeros31761 = true; CountSteppers31761 = Math.ceil(CountSteppers31761); if (CountSteppers31761 == 0) CountActives31761 = false; var SetTimeOutPeriods31761 = (Math.abs(CountSteppers31761)-1)*1000 + 990; puti(BackColors31761, ForeColors31761); var dthens31761 = new Date(TargetDates31761); var dnows31761 = new Date("03/05/2025 8:38:55 PM"); if(CountSteppers31761>0) ddiffs31761 = new Date(dnows31761-dthens31761); else ddiffs31761 = new Date(dthens31761-dnows31761); gsecss31761 = Math.floor(ddiffs31761.valueOf()/1000); CountBacks31761(gsecss31761);