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 (LeadingZeros31627 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31627(secs) { if (secs < 0) { document.getElementById("cntdwns31627").innerHTML = FinishMessages31627; return; } DisplayStrs31627 = DisplayFormats31627.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31627 = DisplayStrs31627.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31627 = DisplayStrs31627.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31627 = DisplayStrs31627.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31627").innerHTML = DisplayStrs31627; if (CountActives31627) //alert(SetTimeOutPeriods31627); setTimeout("CountBacks31627(" + (secs+CountSteppers31627) + ")", SetTimeOutPeriods31627); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31627)=="undefined") BackColors31627 = ""; if (typeof(ForeColors31627)=="undefined") ForeColors31627= "white"; if (typeof(TargetDates31627)=="undefined") TargetDates31627 = "02/05/2025 10:00:00 PM"; if (typeof(DisplayFormats31627)=="undefined") DisplayFormats31627 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31627)=="undefined") CountActives31627 = true; if (typeof(FinishMessages31627)=="undefined") FinishMessages31627 = ""; if (typeof(CountSteppers31627)!="number") CountSteppers31627 = -1; if (typeof(LeadingZeros31627)=="undefined") LeadingZeros31627 = true; CountSteppers31627 = Math.ceil(CountSteppers31627); if (CountSteppers31627 == 0) CountActives31627 = false; var SetTimeOutPeriods31627 = (Math.abs(CountSteppers31627)-1)*1000 + 990; puti(BackColors31627, ForeColors31627); var dthens31627 = new Date(TargetDates31627); var dnows31627 = new Date("02/02/2025 3:58:07 PM"); if(CountSteppers31627>0) ddiffs31627 = new Date(dnows31627-dthens31627); else ddiffs31627 = new Date(dthens31627-dnows31627); gsecss31627 = Math.floor(ddiffs31627.valueOf()/1000); CountBacks31627(gsecss31627);