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 (LeadingZeros32093 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32093(secs) { if (secs < 0) { document.getElementById("cntdwns32093").innerHTML = FinishMessages32093; return; } DisplayStrs32093 = DisplayFormats32093.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32093 = DisplayStrs32093.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32093 = DisplayStrs32093.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32093 = DisplayStrs32093.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32093").innerHTML = DisplayStrs32093; if (CountActives32093) //alert(SetTimeOutPeriods32093); setTimeout("CountBacks32093(" + (secs+CountSteppers32093) + ")", SetTimeOutPeriods32093); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32093)=="undefined") BackColors32093 = ""; if (typeof(ForeColors32093)=="undefined") ForeColors32093= "white"; if (typeof(TargetDates32093)=="undefined") TargetDates32093 = "04/19/2025 10:00:00 PM"; if (typeof(DisplayFormats32093)=="undefined") DisplayFormats32093 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32093)=="undefined") CountActives32093 = true; if (typeof(FinishMessages32093)=="undefined") FinishMessages32093 = ""; if (typeof(CountSteppers32093)!="number") CountSteppers32093 = -1; if (typeof(LeadingZeros32093)=="undefined") LeadingZeros32093 = true; CountSteppers32093 = Math.ceil(CountSteppers32093); if (CountSteppers32093 == 0) CountActives32093 = false; var SetTimeOutPeriods32093 = (Math.abs(CountSteppers32093)-1)*1000 + 990; puti(BackColors32093, ForeColors32093); var dthens32093 = new Date(TargetDates32093); var dnows32093 = new Date("04/19/2025 2:08:36 AM"); if(CountSteppers32093>0) ddiffs32093 = new Date(dnows32093-dthens32093); else ddiffs32093 = new Date(dthens32093-dnows32093); gsecss32093 = Math.floor(ddiffs32093.valueOf()/1000); CountBacks32093(gsecss32093);