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 (LeadingZeros31329 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31329(secs) { if (secs < 0) { document.getElementById("cntdwns31329").innerHTML = FinishMessages31329; return; } DisplayStrs31329 = DisplayFormats31329.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31329 = DisplayStrs31329.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31329 = DisplayStrs31329.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31329 = DisplayStrs31329.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31329").innerHTML = DisplayStrs31329; if (CountActives31329) //alert(SetTimeOutPeriods31329); setTimeout("CountBacks31329(" + (secs+CountSteppers31329) + ")", SetTimeOutPeriods31329); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31329)=="undefined") BackColors31329 = ""; if (typeof(ForeColors31329)=="undefined") ForeColors31329= "white"; if (typeof(TargetDates31329)=="undefined") TargetDates31329 = "01/27/2025 10:00:00 PM"; if (typeof(DisplayFormats31329)=="undefined") DisplayFormats31329 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31329)=="undefined") CountActives31329 = true; if (typeof(FinishMessages31329)=="undefined") FinishMessages31329 = ""; if (typeof(CountSteppers31329)!="number") CountSteppers31329 = -1; if (typeof(LeadingZeros31329)=="undefined") LeadingZeros31329 = true; CountSteppers31329 = Math.ceil(CountSteppers31329); if (CountSteppers31329 == 0) CountActives31329 = false; var SetTimeOutPeriods31329 = (Math.abs(CountSteppers31329)-1)*1000 + 990; puti(BackColors31329, ForeColors31329); var dthens31329 = new Date(TargetDates31329); var dnows31329 = new Date("02/05/2025 7:02:19 PM"); if(CountSteppers31329>0) ddiffs31329 = new Date(dnows31329-dthens31329); else ddiffs31329 = new Date(dthens31329-dnows31329); gsecss31329 = Math.floor(ddiffs31329.valueOf()/1000); CountBacks31329(gsecss31329);