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 (LeadingZeros31351 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31351(secs) { if (secs < 0) { document.getElementById("cntdwns31351").innerHTML = FinishMessages31351; return; } DisplayStrs31351 = DisplayFormats31351.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31351 = DisplayStrs31351.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31351 = DisplayStrs31351.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31351 = DisplayStrs31351.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31351").innerHTML = DisplayStrs31351; if (CountActives31351) //alert(SetTimeOutPeriods31351); setTimeout("CountBacks31351(" + (secs+CountSteppers31351) + ")", SetTimeOutPeriods31351); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31351)=="undefined") BackColors31351 = ""; if (typeof(ForeColors31351)=="undefined") ForeColors31351= "white"; if (typeof(TargetDates31351)=="undefined") TargetDates31351 = "02/14/2025 9:00:00 PM"; if (typeof(DisplayFormats31351)=="undefined") DisplayFormats31351 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31351)=="undefined") CountActives31351 = true; if (typeof(FinishMessages31351)=="undefined") FinishMessages31351 = ""; if (typeof(CountSteppers31351)!="number") CountSteppers31351 = -1; if (typeof(LeadingZeros31351)=="undefined") LeadingZeros31351 = true; CountSteppers31351 = Math.ceil(CountSteppers31351); if (CountSteppers31351 == 0) CountActives31351 = false; var SetTimeOutPeriods31351 = (Math.abs(CountSteppers31351)-1)*1000 + 990; puti(BackColors31351, ForeColors31351); var dthens31351 = new Date(TargetDates31351); var dnows31351 = new Date("02/12/2025 1:20:55 AM"); if(CountSteppers31351>0) ddiffs31351 = new Date(dnows31351-dthens31351); else ddiffs31351 = new Date(dthens31351-dnows31351); gsecss31351 = Math.floor(ddiffs31351.valueOf()/1000); CountBacks31351(gsecss31351);