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 (LeadingZeros31664 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31664(secs) { if (secs < 0) { document.getElementById("cntdwns31664").innerHTML = FinishMessages31664; return; } DisplayStrs31664 = DisplayFormats31664.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31664 = DisplayStrs31664.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31664 = DisplayStrs31664.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31664 = DisplayStrs31664.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31664").innerHTML = DisplayStrs31664; if (CountActives31664) //alert(SetTimeOutPeriods31664); setTimeout("CountBacks31664(" + (secs+CountSteppers31664) + ")", SetTimeOutPeriods31664); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31664)=="undefined") BackColors31664 = ""; if (typeof(ForeColors31664)=="undefined") ForeColors31664= "white"; if (typeof(TargetDates31664)=="undefined") TargetDates31664 = "02/07/2025 10:00:00 PM"; if (typeof(DisplayFormats31664)=="undefined") DisplayFormats31664 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31664)=="undefined") CountActives31664 = true; if (typeof(FinishMessages31664)=="undefined") FinishMessages31664 = ""; if (typeof(CountSteppers31664)!="number") CountSteppers31664 = -1; if (typeof(LeadingZeros31664)=="undefined") LeadingZeros31664 = true; CountSteppers31664 = Math.ceil(CountSteppers31664); if (CountSteppers31664 == 0) CountActives31664 = false; var SetTimeOutPeriods31664 = (Math.abs(CountSteppers31664)-1)*1000 + 990; puti(BackColors31664, ForeColors31664); var dthens31664 = new Date(TargetDates31664); var dnows31664 = new Date("02/05/2025 12:44:04 PM"); if(CountSteppers31664>0) ddiffs31664 = new Date(dnows31664-dthens31664); else ddiffs31664 = new Date(dthens31664-dnows31664); gsecss31664 = Math.floor(ddiffs31664.valueOf()/1000); CountBacks31664(gsecss31664);