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 (LeadingZeros32090 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32090(secs) { if (secs < 0) { document.getElementById("cntdwns32090").innerHTML = FinishMessages32090; return; } DisplayStrs32090 = DisplayFormats32090.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32090 = DisplayStrs32090.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32090 = DisplayStrs32090.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32090 = DisplayStrs32090.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32090").innerHTML = DisplayStrs32090; if (CountActives32090) //alert(SetTimeOutPeriods32090); setTimeout("CountBacks32090(" + (secs+CountSteppers32090) + ")", SetTimeOutPeriods32090); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32090)=="undefined") BackColors32090 = ""; if (typeof(ForeColors32090)=="undefined") ForeColors32090= "white"; if (typeof(TargetDates32090)=="undefined") TargetDates32090 = "04/11/2025 10:00:00 PM"; if (typeof(DisplayFormats32090)=="undefined") DisplayFormats32090 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32090)=="undefined") CountActives32090 = true; if (typeof(FinishMessages32090)=="undefined") FinishMessages32090 = ""; if (typeof(CountSteppers32090)!="number") CountSteppers32090 = -1; if (typeof(LeadingZeros32090)=="undefined") LeadingZeros32090 = true; CountSteppers32090 = Math.ceil(CountSteppers32090); if (CountSteppers32090 == 0) CountActives32090 = false; var SetTimeOutPeriods32090 = (Math.abs(CountSteppers32090)-1)*1000 + 990; puti(BackColors32090, ForeColors32090); var dthens32090 = new Date(TargetDates32090); var dnows32090 = new Date("04/17/2025 4:09:07 AM"); if(CountSteppers32090>0) ddiffs32090 = new Date(dnows32090-dthens32090); else ddiffs32090 = new Date(dthens32090-dnows32090); gsecss32090 = Math.floor(ddiffs32090.valueOf()/1000); CountBacks32090(gsecss32090);