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 (LeadingZeros30424 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks30424(secs) { if (secs < 0) { document.getElementById("cntdwns30424").innerHTML = FinishMessages30424; return; } DisplayStrs30424 = DisplayFormats30424.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs30424 = DisplayStrs30424.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs30424 = DisplayStrs30424.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs30424 = DisplayStrs30424.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns30424").innerHTML = DisplayStrs30424; if (CountActives30424) //alert(SetTimeOutPeriods30424); setTimeout("CountBacks30424(" + (secs+CountSteppers30424) + ")", SetTimeOutPeriods30424); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors30424)=="undefined") BackColors30424 = ""; if (typeof(ForeColors30424)=="undefined") ForeColors30424= "white"; if (typeof(TargetDates30424)=="undefined") TargetDates30424 = "04/21/2024 10:00:00 PM"; if (typeof(DisplayFormats30424)=="undefined") DisplayFormats30424 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives30424)=="undefined") CountActives30424 = true; if (typeof(FinishMessages30424)=="undefined") FinishMessages30424 = ""; if (typeof(CountSteppers30424)!="number") CountSteppers30424 = -1; if (typeof(LeadingZeros30424)=="undefined") LeadingZeros30424 = true; CountSteppers30424 = Math.ceil(CountSteppers30424); if (CountSteppers30424 == 0) CountActives30424 = false; var SetTimeOutPeriods30424 = (Math.abs(CountSteppers30424)-1)*1000 + 990; puti(BackColors30424, ForeColors30424); var dthens30424 = new Date(TargetDates30424); var dnows30424 = new Date("05/02/2024 1:33:06 PM"); if(CountSteppers30424>0) ddiffs30424 = new Date(dnows30424-dthens30424); else ddiffs30424 = new Date(dthens30424-dnows30424); gsecss30424 = Math.floor(ddiffs30424.valueOf()/1000); CountBacks30424(gsecss30424);