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 (LeadingZeros32062 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32062(secs) { if (secs < 0) { document.getElementById("cntdwns32062").innerHTML = FinishMessages32062; return; } DisplayStrs32062 = DisplayFormats32062.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32062 = DisplayStrs32062.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32062 = DisplayStrs32062.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32062 = DisplayStrs32062.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32062").innerHTML = DisplayStrs32062; if (CountActives32062) //alert(SetTimeOutPeriods32062); setTimeout("CountBacks32062(" + (secs+CountSteppers32062) + ")", SetTimeOutPeriods32062); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32062)=="undefined") BackColors32062 = ""; if (typeof(ForeColors32062)=="undefined") ForeColors32062= "white"; if (typeof(TargetDates32062)=="undefined") TargetDates32062 = "03/29/2025 10:00:00 PM"; if (typeof(DisplayFormats32062)=="undefined") DisplayFormats32062 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32062)=="undefined") CountActives32062 = true; if (typeof(FinishMessages32062)=="undefined") FinishMessages32062 = ""; if (typeof(CountSteppers32062)!="number") CountSteppers32062 = -1; if (typeof(LeadingZeros32062)=="undefined") LeadingZeros32062 = true; CountSteppers32062 = Math.ceil(CountSteppers32062); if (CountSteppers32062 == 0) CountActives32062 = false; var SetTimeOutPeriods32062 = (Math.abs(CountSteppers32062)-1)*1000 + 990; puti(BackColors32062, ForeColors32062); var dthens32062 = new Date(TargetDates32062); var dnows32062 = new Date("03/29/2025 3:10:11 PM"); if(CountSteppers32062>0) ddiffs32062 = new Date(dnows32062-dthens32062); else ddiffs32062 = new Date(dthens32062-dnows32062); gsecss32062 = Math.floor(ddiffs32062.valueOf()/1000); CountBacks32062(gsecss32062);