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 (LeadingZeros32205 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32205(secs) { if (secs < 0) { document.getElementById("cntdwns32205").innerHTML = FinishMessages32205; return; } DisplayStrs32205 = DisplayFormats32205.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32205 = DisplayStrs32205.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32205 = DisplayStrs32205.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32205 = DisplayStrs32205.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32205").innerHTML = DisplayStrs32205; if (CountActives32205) //alert(SetTimeOutPeriods32205); setTimeout("CountBacks32205(" + (secs+CountSteppers32205) + ")", SetTimeOutPeriods32205); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32205)=="undefined") BackColors32205 = ""; if (typeof(ForeColors32205)=="undefined") ForeColors32205= "white"; if (typeof(TargetDates32205)=="undefined") TargetDates32205 = "05/07/2025 10:00:00 PM"; if (typeof(DisplayFormats32205)=="undefined") DisplayFormats32205 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32205)=="undefined") CountActives32205 = true; if (typeof(FinishMessages32205)=="undefined") FinishMessages32205 = ""; if (typeof(CountSteppers32205)!="number") CountSteppers32205 = -1; if (typeof(LeadingZeros32205)=="undefined") LeadingZeros32205 = true; CountSteppers32205 = Math.ceil(CountSteppers32205); if (CountSteppers32205 == 0) CountActives32205 = false; var SetTimeOutPeriods32205 = (Math.abs(CountSteppers32205)-1)*1000 + 990; puti(BackColors32205, ForeColors32205); var dthens32205 = new Date(TargetDates32205); var dnows32205 = new Date("05/05/2025 6:33:26 PM"); if(CountSteppers32205>0) ddiffs32205 = new Date(dnows32205-dthens32205); else ddiffs32205 = new Date(dthens32205-dnows32205); gsecss32205 = Math.floor(ddiffs32205.valueOf()/1000); CountBacks32205(gsecss32205);