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 (LeadingZeros32094 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32094(secs) { if (secs < 0) { document.getElementById("cntdwns32094").innerHTML = FinishMessages32094; return; } DisplayStrs32094 = DisplayFormats32094.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32094 = DisplayStrs32094.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32094 = DisplayStrs32094.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32094 = DisplayStrs32094.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32094").innerHTML = DisplayStrs32094; if (CountActives32094) //alert(SetTimeOutPeriods32094); setTimeout("CountBacks32094(" + (secs+CountSteppers32094) + ")", SetTimeOutPeriods32094); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32094)=="undefined") BackColors32094 = ""; if (typeof(ForeColors32094)=="undefined") ForeColors32094= "white"; if (typeof(TargetDates32094)=="undefined") TargetDates32094 = "04/19/2025 10:00:00 PM"; if (typeof(DisplayFormats32094)=="undefined") DisplayFormats32094 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32094)=="undefined") CountActives32094 = true; if (typeof(FinishMessages32094)=="undefined") FinishMessages32094 = ""; if (typeof(CountSteppers32094)!="number") CountSteppers32094 = -1; if (typeof(LeadingZeros32094)=="undefined") LeadingZeros32094 = true; CountSteppers32094 = Math.ceil(CountSteppers32094); if (CountSteppers32094 == 0) CountActives32094 = false; var SetTimeOutPeriods32094 = (Math.abs(CountSteppers32094)-1)*1000 + 990; puti(BackColors32094, ForeColors32094); var dthens32094 = new Date(TargetDates32094); var dnows32094 = new Date("04/19/2025 2:08:35 AM"); if(CountSteppers32094>0) ddiffs32094 = new Date(dnows32094-dthens32094); else ddiffs32094 = new Date(dthens32094-dnows32094); gsecss32094 = Math.floor(ddiffs32094.valueOf()/1000); CountBacks32094(gsecss32094);