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 (LeadingZeros32230 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32230(secs) { if (secs < 0) { document.getElementById("cntdwns32230").innerHTML = FinishMessages32230; return; } DisplayStrs32230 = DisplayFormats32230.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32230 = DisplayStrs32230.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32230 = DisplayStrs32230.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32230 = DisplayStrs32230.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32230").innerHTML = DisplayStrs32230; if (CountActives32230) //alert(SetTimeOutPeriods32230); setTimeout("CountBacks32230(" + (secs+CountSteppers32230) + ")", SetTimeOutPeriods32230); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32230)=="undefined") BackColors32230 = ""; if (typeof(ForeColors32230)=="undefined") ForeColors32230= "white"; if (typeof(TargetDates32230)=="undefined") TargetDates32230 = "04/21/2025 10:00:00 PM"; if (typeof(DisplayFormats32230)=="undefined") DisplayFormats32230 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32230)=="undefined") CountActives32230 = true; if (typeof(FinishMessages32230)=="undefined") FinishMessages32230 = ""; if (typeof(CountSteppers32230)!="number") CountSteppers32230 = -1; if (typeof(LeadingZeros32230)=="undefined") LeadingZeros32230 = true; CountSteppers32230 = Math.ceil(CountSteppers32230); if (CountSteppers32230 == 0) CountActives32230 = false; var SetTimeOutPeriods32230 = (Math.abs(CountSteppers32230)-1)*1000 + 990; puti(BackColors32230, ForeColors32230); var dthens32230 = new Date(TargetDates32230); var dnows32230 = new Date("04/19/2025 1:59:02 PM"); if(CountSteppers32230>0) ddiffs32230 = new Date(dnows32230-dthens32230); else ddiffs32230 = new Date(dthens32230-dnows32230); gsecss32230 = Math.floor(ddiffs32230.valueOf()/1000); CountBacks32230(gsecss32230);