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 (LeadingZeros31775 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31775(secs) { if (secs < 0) { document.getElementById("cntdwns31775").innerHTML = FinishMessages31775; return; } DisplayStrs31775 = DisplayFormats31775.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31775 = DisplayStrs31775.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31775 = DisplayStrs31775.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31775 = DisplayStrs31775.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31775").innerHTML = DisplayStrs31775; if (CountActives31775) //alert(SetTimeOutPeriods31775); setTimeout("CountBacks31775(" + (secs+CountSteppers31775) + ")", SetTimeOutPeriods31775); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31775)=="undefined") BackColors31775 = ""; if (typeof(ForeColors31775)=="undefined") ForeColors31775= "white"; if (typeof(TargetDates31775)=="undefined") TargetDates31775 = "06/02/2025 10:00:00 PM"; if (typeof(DisplayFormats31775)=="undefined") DisplayFormats31775 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31775)=="undefined") CountActives31775 = true; if (typeof(FinishMessages31775)=="undefined") FinishMessages31775 = ""; if (typeof(CountSteppers31775)!="number") CountSteppers31775 = -1; if (typeof(LeadingZeros31775)=="undefined") LeadingZeros31775 = true; CountSteppers31775 = Math.ceil(CountSteppers31775); if (CountSteppers31775 == 0) CountActives31775 = false; var SetTimeOutPeriods31775 = (Math.abs(CountSteppers31775)-1)*1000 + 990; puti(BackColors31775, ForeColors31775); var dthens31775 = new Date(TargetDates31775); var dnows31775 = new Date("06/01/2025 8:44:57 AM"); if(CountSteppers31775>0) ddiffs31775 = new Date(dnows31775-dthens31775); else ddiffs31775 = new Date(dthens31775-dnows31775); gsecss31775 = Math.floor(ddiffs31775.valueOf()/1000); CountBacks31775(gsecss31775);