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 (LeadingZeros31507 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31507(secs) { if (secs < 0) { document.getElementById("cntdwns31507").innerHTML = FinishMessages31507; return; } DisplayStrs31507 = DisplayFormats31507.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31507 = DisplayStrs31507.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31507 = DisplayStrs31507.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31507 = DisplayStrs31507.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31507").innerHTML = DisplayStrs31507; if (CountActives31507) //alert(SetTimeOutPeriods31507); setTimeout("CountBacks31507(" + (secs+CountSteppers31507) + ")", SetTimeOutPeriods31507); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31507)=="undefined") BackColors31507 = ""; if (typeof(ForeColors31507)=="undefined") ForeColors31507= "white"; if (typeof(TargetDates31507)=="undefined") TargetDates31507 = "01/28/2025 10:00:00 PM"; if (typeof(DisplayFormats31507)=="undefined") DisplayFormats31507 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31507)=="undefined") CountActives31507 = true; if (typeof(FinishMessages31507)=="undefined") FinishMessages31507 = ""; if (typeof(CountSteppers31507)!="number") CountSteppers31507 = -1; if (typeof(LeadingZeros31507)=="undefined") LeadingZeros31507 = true; CountSteppers31507 = Math.ceil(CountSteppers31507); if (CountSteppers31507 == 0) CountActives31507 = false; var SetTimeOutPeriods31507 = (Math.abs(CountSteppers31507)-1)*1000 + 990; puti(BackColors31507, ForeColors31507); var dthens31507 = new Date(TargetDates31507); var dnows31507 = new Date("02/05/2025 1:58:17 PM"); if(CountSteppers31507>0) ddiffs31507 = new Date(dnows31507-dthens31507); else ddiffs31507 = new Date(dthens31507-dnows31507); gsecss31507 = Math.floor(ddiffs31507.valueOf()/1000); CountBacks31507(gsecss31507);