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 (LeadingZeros31277 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31277(secs) { if (secs < 0) { document.getElementById("cntdwns31277").innerHTML = FinishMessages31277; return; } DisplayStrs31277 = DisplayFormats31277.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31277 = DisplayStrs31277.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31277 = DisplayStrs31277.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31277 = DisplayStrs31277.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31277").innerHTML = DisplayStrs31277; if (CountActives31277) //alert(SetTimeOutPeriods31277); setTimeout("CountBacks31277(" + (secs+CountSteppers31277) + ")", SetTimeOutPeriods31277); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31277)=="undefined") BackColors31277 = ""; if (typeof(ForeColors31277)=="undefined") ForeColors31277= "white"; if (typeof(TargetDates31277)=="undefined") TargetDates31277 = "02/07/2025 9:00:00 PM"; if (typeof(DisplayFormats31277)=="undefined") DisplayFormats31277 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31277)=="undefined") CountActives31277 = true; if (typeof(FinishMessages31277)=="undefined") FinishMessages31277 = ""; if (typeof(CountSteppers31277)!="number") CountSteppers31277 = -1; if (typeof(LeadingZeros31277)=="undefined") LeadingZeros31277 = true; CountSteppers31277 = Math.ceil(CountSteppers31277); if (CountSteppers31277 == 0) CountActives31277 = false; var SetTimeOutPeriods31277 = (Math.abs(CountSteppers31277)-1)*1000 + 990; puti(BackColors31277, ForeColors31277); var dthens31277 = new Date(TargetDates31277); var dnows31277 = new Date("02/05/2025 7:52:07 AM"); if(CountSteppers31277>0) ddiffs31277 = new Date(dnows31277-dthens31277); else ddiffs31277 = new Date(dthens31277-dnows31277); gsecss31277 = Math.floor(ddiffs31277.valueOf()/1000); CountBacks31277(gsecss31277);