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 (LeadingZeros31656 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31656(secs) { if (secs < 0) { document.getElementById("cntdwns31656").innerHTML = FinishMessages31656; return; } DisplayStrs31656 = DisplayFormats31656.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31656 = DisplayStrs31656.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31656 = DisplayStrs31656.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31656 = DisplayStrs31656.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31656").innerHTML = DisplayStrs31656; if (CountActives31656) //alert(SetTimeOutPeriods31656); setTimeout("CountBacks31656(" + (secs+CountSteppers31656) + ")", SetTimeOutPeriods31656); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31656)=="undefined") BackColors31656 = ""; if (typeof(ForeColors31656)=="undefined") ForeColors31656= "white"; if (typeof(TargetDates31656)=="undefined") TargetDates31656 = "02/08/2025 10:00:00 PM"; if (typeof(DisplayFormats31656)=="undefined") DisplayFormats31656 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31656)=="undefined") CountActives31656 = true; if (typeof(FinishMessages31656)=="undefined") FinishMessages31656 = ""; if (typeof(CountSteppers31656)!="number") CountSteppers31656 = -1; if (typeof(LeadingZeros31656)=="undefined") LeadingZeros31656 = true; CountSteppers31656 = Math.ceil(CountSteppers31656); if (CountSteppers31656 == 0) CountActives31656 = false; var SetTimeOutPeriods31656 = (Math.abs(CountSteppers31656)-1)*1000 + 990; puti(BackColors31656, ForeColors31656); var dthens31656 = new Date(TargetDates31656); var dnows31656 = new Date("02/05/2025 9:04:08 PM"); if(CountSteppers31656>0) ddiffs31656 = new Date(dnows31656-dthens31656); else ddiffs31656 = new Date(dthens31656-dnows31656); gsecss31656 = Math.floor(ddiffs31656.valueOf()/1000); CountBacks31656(gsecss31656);