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 (LeadingZeros30395 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks30395(secs) { if (secs < 0) { document.getElementById("cntdwns30395").innerHTML = FinishMessages30395; return; } DisplayStrs30395 = DisplayFormats30395.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs30395 = DisplayStrs30395.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs30395 = DisplayStrs30395.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs30395 = DisplayStrs30395.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns30395").innerHTML = DisplayStrs30395; if (CountActives30395) //alert(SetTimeOutPeriods30395); setTimeout("CountBacks30395(" + (secs+CountSteppers30395) + ")", SetTimeOutPeriods30395); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors30395)=="undefined") BackColors30395 = ""; if (typeof(ForeColors30395)=="undefined") ForeColors30395= "white"; if (typeof(TargetDates30395)=="undefined") TargetDates30395 = "05/07/2024 10:00:00 PM"; if (typeof(DisplayFormats30395)=="undefined") DisplayFormats30395 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives30395)=="undefined") CountActives30395 = true; if (typeof(FinishMessages30395)=="undefined") FinishMessages30395 = ""; if (typeof(CountSteppers30395)!="number") CountSteppers30395 = -1; if (typeof(LeadingZeros30395)=="undefined") LeadingZeros30395 = true; CountSteppers30395 = Math.ceil(CountSteppers30395); if (CountSteppers30395 == 0) CountActives30395 = false; var SetTimeOutPeriods30395 = (Math.abs(CountSteppers30395)-1)*1000 + 990; puti(BackColors30395, ForeColors30395); var dthens30395 = new Date(TargetDates30395); var dnows30395 = new Date("05/18/2024 6:26:53 PM"); if(CountSteppers30395>0) ddiffs30395 = new Date(dnows30395-dthens30395); else ddiffs30395 = new Date(dthens30395-dnows30395); gsecss30395 = Math.floor(ddiffs30395.valueOf()/1000); CountBacks30395(gsecss30395);