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 (LeadingZeros30420 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks30420(secs) { if (secs < 0) { document.getElementById("cntdwns30420").innerHTML = FinishMessages30420; return; } DisplayStrs30420 = DisplayFormats30420.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs30420 = DisplayStrs30420.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs30420 = DisplayStrs30420.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs30420 = DisplayStrs30420.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns30420").innerHTML = DisplayStrs30420; if (CountActives30420) //alert(SetTimeOutPeriods30420); setTimeout("CountBacks30420(" + (secs+CountSteppers30420) + ")", SetTimeOutPeriods30420); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors30420)=="undefined") BackColors30420 = ""; if (typeof(ForeColors30420)=="undefined") ForeColors30420= "white"; if (typeof(TargetDates30420)=="undefined") TargetDates30420 = "04/19/2024 9:00:00 PM"; if (typeof(DisplayFormats30420)=="undefined") DisplayFormats30420 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives30420)=="undefined") CountActives30420 = true; if (typeof(FinishMessages30420)=="undefined") FinishMessages30420 = ""; if (typeof(CountSteppers30420)!="number") CountSteppers30420 = -1; if (typeof(LeadingZeros30420)=="undefined") LeadingZeros30420 = true; CountSteppers30420 = Math.ceil(CountSteppers30420); if (CountSteppers30420 == 0) CountActives30420 = false; var SetTimeOutPeriods30420 = (Math.abs(CountSteppers30420)-1)*1000 + 990; puti(BackColors30420, ForeColors30420); var dthens30420 = new Date(TargetDates30420); var dnows30420 = new Date("04/30/2024 7:36:06 AM"); if(CountSteppers30420>0) ddiffs30420 = new Date(dnows30420-dthens30420); else ddiffs30420 = new Date(dthens30420-dnows30420); gsecss30420 = Math.floor(ddiffs30420.valueOf()/1000); CountBacks30420(gsecss30420);