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 (LeadingZeros31181 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31181(secs) { if (secs < 0) { document.getElementById("cntdwns31181").innerHTML = FinishMessages31181; return; } DisplayStrs31181 = DisplayFormats31181.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31181 = DisplayStrs31181.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31181 = DisplayStrs31181.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31181 = DisplayStrs31181.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31181").innerHTML = DisplayStrs31181; if (CountActives31181) //alert(SetTimeOutPeriods31181); setTimeout("CountBacks31181(" + (secs+CountSteppers31181) + ")", SetTimeOutPeriods31181); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31181)=="undefined") BackColors31181 = ""; if (typeof(ForeColors31181)=="undefined") ForeColors31181= "white"; if (typeof(TargetDates31181)=="undefined") TargetDates31181 = "02/08/2025 10:00:00 PM"; if (typeof(DisplayFormats31181)=="undefined") DisplayFormats31181 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31181)=="undefined") CountActives31181 = true; if (typeof(FinishMessages31181)=="undefined") FinishMessages31181 = ""; if (typeof(CountSteppers31181)!="number") CountSteppers31181 = -1; if (typeof(LeadingZeros31181)=="undefined") LeadingZeros31181 = true; CountSteppers31181 = Math.ceil(CountSteppers31181); if (CountSteppers31181 == 0) CountActives31181 = false; var SetTimeOutPeriods31181 = (Math.abs(CountSteppers31181)-1)*1000 + 990; puti(BackColors31181, ForeColors31181); var dthens31181 = new Date(TargetDates31181); var dnows31181 = new Date("02/05/2025 8:01:39 AM"); if(CountSteppers31181>0) ddiffs31181 = new Date(dnows31181-dthens31181); else ddiffs31181 = new Date(dthens31181-dnows31181); gsecss31181 = Math.floor(ddiffs31181.valueOf()/1000); CountBacks31181(gsecss31181);