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 (LeadingZeros31951 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31951(secs) { if (secs < 0) { document.getElementById("cntdwns31951").innerHTML = FinishMessages31951; return; } DisplayStrs31951 = DisplayFormats31951.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31951 = DisplayStrs31951.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31951 = DisplayStrs31951.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31951 = DisplayStrs31951.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31951").innerHTML = DisplayStrs31951; if (CountActives31951) //alert(SetTimeOutPeriods31951); setTimeout("CountBacks31951(" + (secs+CountSteppers31951) + ")", SetTimeOutPeriods31951); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31951)=="undefined") BackColors31951 = ""; if (typeof(ForeColors31951)=="undefined") ForeColors31951= "white"; if (typeof(TargetDates31951)=="undefined") TargetDates31951 = "03/08/2025 10:00:00 PM"; if (typeof(DisplayFormats31951)=="undefined") DisplayFormats31951 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31951)=="undefined") CountActives31951 = true; if (typeof(FinishMessages31951)=="undefined") FinishMessages31951 = ""; if (typeof(CountSteppers31951)!="number") CountSteppers31951 = -1; if (typeof(LeadingZeros31951)=="undefined") LeadingZeros31951 = true; CountSteppers31951 = Math.ceil(CountSteppers31951); if (CountSteppers31951 == 0) CountActives31951 = false; var SetTimeOutPeriods31951 = (Math.abs(CountSteppers31951)-1)*1000 + 990; puti(BackColors31951, ForeColors31951); var dthens31951 = new Date(TargetDates31951); var dnows31951 = new Date("03/06/2025 1:38:26 PM"); if(CountSteppers31951>0) ddiffs31951 = new Date(dnows31951-dthens31951); else ddiffs31951 = new Date(dthens31951-dnows31951); gsecss31951 = Math.floor(ddiffs31951.valueOf()/1000); CountBacks31951(gsecss31951);