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 (LeadingZeros32179 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32179(secs) { if (secs < 0) { document.getElementById("cntdwns32179").innerHTML = FinishMessages32179; return; } DisplayStrs32179 = DisplayFormats32179.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32179 = DisplayStrs32179.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32179 = DisplayStrs32179.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32179 = DisplayStrs32179.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32179").innerHTML = DisplayStrs32179; if (CountActives32179) //alert(SetTimeOutPeriods32179); setTimeout("CountBacks32179(" + (secs+CountSteppers32179) + ")", SetTimeOutPeriods32179); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32179)=="undefined") BackColors32179 = ""; if (typeof(ForeColors32179)=="undefined") ForeColors32179= "white"; if (typeof(TargetDates32179)=="undefined") TargetDates32179 = "04/18/2025 10:00:00 PM"; if (typeof(DisplayFormats32179)=="undefined") DisplayFormats32179 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32179)=="undefined") CountActives32179 = true; if (typeof(FinishMessages32179)=="undefined") FinishMessages32179 = ""; if (typeof(CountSteppers32179)!="number") CountSteppers32179 = -1; if (typeof(LeadingZeros32179)=="undefined") LeadingZeros32179 = true; CountSteppers32179 = Math.ceil(CountSteppers32179); if (CountSteppers32179 == 0) CountActives32179 = false; var SetTimeOutPeriods32179 = (Math.abs(CountSteppers32179)-1)*1000 + 990; puti(BackColors32179, ForeColors32179); var dthens32179 = new Date(TargetDates32179); var dnows32179 = new Date("04/19/2025 2:08:35 AM"); if(CountSteppers32179>0) ddiffs32179 = new Date(dnows32179-dthens32179); else ddiffs32179 = new Date(dthens32179-dnows32179); gsecss32179 = Math.floor(ddiffs32179.valueOf()/1000); CountBacks32179(gsecss32179);