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 (LeadingZeros32043 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32043(secs) { if (secs < 0) { document.getElementById("cntdwns32043").innerHTML = FinishMessages32043; return; } DisplayStrs32043 = DisplayFormats32043.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32043 = DisplayStrs32043.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32043 = DisplayStrs32043.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32043 = DisplayStrs32043.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32043").innerHTML = DisplayStrs32043; if (CountActives32043) //alert(SetTimeOutPeriods32043); setTimeout("CountBacks32043(" + (secs+CountSteppers32043) + ")", SetTimeOutPeriods32043); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32043)=="undefined") BackColors32043 = ""; if (typeof(ForeColors32043)=="undefined") ForeColors32043= "white"; if (typeof(TargetDates32043)=="undefined") TargetDates32043 = "04/22/2025 11:00:00 PM"; if (typeof(DisplayFormats32043)=="undefined") DisplayFormats32043 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32043)=="undefined") CountActives32043 = true; if (typeof(FinishMessages32043)=="undefined") FinishMessages32043 = ""; if (typeof(CountSteppers32043)!="number") CountSteppers32043 = -1; if (typeof(LeadingZeros32043)=="undefined") LeadingZeros32043 = true; CountSteppers32043 = Math.ceil(CountSteppers32043); if (CountSteppers32043 == 0) CountActives32043 = false; var SetTimeOutPeriods32043 = (Math.abs(CountSteppers32043)-1)*1000 + 990; puti(BackColors32043, ForeColors32043); var dthens32043 = new Date(TargetDates32043); var dnows32043 = new Date("04/19/2025 2:52:03 PM"); if(CountSteppers32043>0) ddiffs32043 = new Date(dnows32043-dthens32043); else ddiffs32043 = new Date(dthens32043-dnows32043); gsecss32043 = Math.floor(ddiffs32043.valueOf()/1000); CountBacks32043(gsecss32043);