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 (LeadingZeros31352 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31352(secs) { if (secs < 0) { document.getElementById("cntdwns31352").innerHTML = FinishMessages31352; return; } DisplayStrs31352 = DisplayFormats31352.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31352 = DisplayStrs31352.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31352 = DisplayStrs31352.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31352 = DisplayStrs31352.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31352").innerHTML = DisplayStrs31352; if (CountActives31352) //alert(SetTimeOutPeriods31352); setTimeout("CountBacks31352(" + (secs+CountSteppers31352) + ")", SetTimeOutPeriods31352); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31352)=="undefined") BackColors31352 = ""; if (typeof(ForeColors31352)=="undefined") ForeColors31352= "white"; if (typeof(TargetDates31352)=="undefined") TargetDates31352 = "02/14/2025 10:00:00 PM"; if (typeof(DisplayFormats31352)=="undefined") DisplayFormats31352 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31352)=="undefined") CountActives31352 = true; if (typeof(FinishMessages31352)=="undefined") FinishMessages31352 = ""; if (typeof(CountSteppers31352)!="number") CountSteppers31352 = -1; if (typeof(LeadingZeros31352)=="undefined") LeadingZeros31352 = true; CountSteppers31352 = Math.ceil(CountSteppers31352); if (CountSteppers31352 == 0) CountActives31352 = false; var SetTimeOutPeriods31352 = (Math.abs(CountSteppers31352)-1)*1000 + 990; puti(BackColors31352, ForeColors31352); var dthens31352 = new Date(TargetDates31352); var dnows31352 = new Date("02/12/2025 12:50:41 AM"); if(CountSteppers31352>0) ddiffs31352 = new Date(dnows31352-dthens31352); else ddiffs31352 = new Date(dthens31352-dnows31352); gsecss31352 = Math.floor(ddiffs31352.valueOf()/1000); CountBacks31352(gsecss31352);