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 (LeadingZeros30462 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks30462(secs) { if (secs < 0) { document.getElementById("cntdwns30462").innerHTML = FinishMessages30462; return; } DisplayStrs30462 = DisplayFormats30462.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs30462 = DisplayStrs30462.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs30462 = DisplayStrs30462.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs30462 = DisplayStrs30462.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns30462").innerHTML = DisplayStrs30462; if (CountActives30462) //alert(SetTimeOutPeriods30462); setTimeout("CountBacks30462(" + (secs+CountSteppers30462) + ")", SetTimeOutPeriods30462); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors30462)=="undefined") BackColors30462 = ""; if (typeof(ForeColors30462)=="undefined") ForeColors30462= "white"; if (typeof(TargetDates30462)=="undefined") TargetDates30462 = "04/30/2024 10:00:00 PM"; if (typeof(DisplayFormats30462)=="undefined") DisplayFormats30462 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives30462)=="undefined") CountActives30462 = true; if (typeof(FinishMessages30462)=="undefined") FinishMessages30462 = ""; if (typeof(CountSteppers30462)!="number") CountSteppers30462 = -1; if (typeof(LeadingZeros30462)=="undefined") LeadingZeros30462 = true; CountSteppers30462 = Math.ceil(CountSteppers30462); if (CountSteppers30462 == 0) CountActives30462 = false; var SetTimeOutPeriods30462 = (Math.abs(CountSteppers30462)-1)*1000 + 990; puti(BackColors30462, ForeColors30462); var dthens30462 = new Date(TargetDates30462); var dnows30462 = new Date("05/09/2024 11:02:42 PM"); if(CountSteppers30462>0) ddiffs30462 = new Date(dnows30462-dthens30462); else ddiffs30462 = new Date(dthens30462-dnows30462); gsecss30462 = Math.floor(ddiffs30462.valueOf()/1000); CountBacks30462(gsecss30462);