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 (LeadingZeros31495 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31495(secs) { if (secs < 0) { document.getElementById("cntdwns31495").innerHTML = FinishMessages31495; return; } DisplayStrs31495 = DisplayFormats31495.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31495 = DisplayStrs31495.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31495 = DisplayStrs31495.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31495 = DisplayStrs31495.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31495").innerHTML = DisplayStrs31495; if (CountActives31495) //alert(SetTimeOutPeriods31495); setTimeout("CountBacks31495(" + (secs+CountSteppers31495) + ")", SetTimeOutPeriods31495); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31495)=="undefined") BackColors31495 = ""; if (typeof(ForeColors31495)=="undefined") ForeColors31495= "white"; if (typeof(TargetDates31495)=="undefined") TargetDates31495 = "02/07/2025 10:00:00 PM"; if (typeof(DisplayFormats31495)=="undefined") DisplayFormats31495 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31495)=="undefined") CountActives31495 = true; if (typeof(FinishMessages31495)=="undefined") FinishMessages31495 = ""; if (typeof(CountSteppers31495)!="number") CountSteppers31495 = -1; if (typeof(LeadingZeros31495)=="undefined") LeadingZeros31495 = true; CountSteppers31495 = Math.ceil(CountSteppers31495); if (CountSteppers31495 == 0) CountActives31495 = false; var SetTimeOutPeriods31495 = (Math.abs(CountSteppers31495)-1)*1000 + 990; puti(BackColors31495, ForeColors31495); var dthens31495 = new Date(TargetDates31495); var dnows31495 = new Date("02/05/2025 3:55:35 PM"); if(CountSteppers31495>0) ddiffs31495 = new Date(dnows31495-dthens31495); else ddiffs31495 = new Date(dthens31495-dnows31495); gsecss31495 = Math.floor(ddiffs31495.valueOf()/1000); CountBacks31495(gsecss31495);