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 (LeadingZeros31639 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31639(secs) { if (secs < 0) { document.getElementById("cntdwns31639").innerHTML = FinishMessages31639; return; } DisplayStrs31639 = DisplayFormats31639.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31639 = DisplayStrs31639.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31639 = DisplayStrs31639.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31639 = DisplayStrs31639.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31639").innerHTML = DisplayStrs31639; if (CountActives31639) //alert(SetTimeOutPeriods31639); setTimeout("CountBacks31639(" + (secs+CountSteppers31639) + ")", SetTimeOutPeriods31639); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31639)=="undefined") BackColors31639 = ""; if (typeof(ForeColors31639)=="undefined") ForeColors31639= "white"; if (typeof(TargetDates31639)=="undefined") TargetDates31639 = "01/26/2025 10:00:00 PM"; if (typeof(DisplayFormats31639)=="undefined") DisplayFormats31639 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31639)=="undefined") CountActives31639 = true; if (typeof(FinishMessages31639)=="undefined") FinishMessages31639 = ""; if (typeof(CountSteppers31639)!="number") CountSteppers31639 = -1; if (typeof(LeadingZeros31639)=="undefined") LeadingZeros31639 = true; CountSteppers31639 = Math.ceil(CountSteppers31639); if (CountSteppers31639 == 0) CountActives31639 = false; var SetTimeOutPeriods31639 = (Math.abs(CountSteppers31639)-1)*1000 + 990; puti(BackColors31639, ForeColors31639); var dthens31639 = new Date(TargetDates31639); var dnows31639 = new Date("02/05/2025 12:42:48 PM"); if(CountSteppers31639>0) ddiffs31639 = new Date(dnows31639-dthens31639); else ddiffs31639 = new Date(dthens31639-dnows31639); gsecss31639 = Math.floor(ddiffs31639.valueOf()/1000); CountBacks31639(gsecss31639);