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 (LeadingZeros29235 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks29235(secs) { if (secs < 0) { document.getElementById("cntdwns29235").innerHTML = FinishMessages29235; return; } DisplayStrs29235 = DisplayFormats29235.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs29235 = DisplayStrs29235.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs29235 = DisplayStrs29235.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs29235 = DisplayStrs29235.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns29235").innerHTML = DisplayStrs29235; if (CountActives29235) //alert(SetTimeOutPeriods29235); setTimeout("CountBacks29235(" + (secs+CountSteppers29235) + ")", SetTimeOutPeriods29235); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors29235)=="undefined") BackColors29235 = ""; if (typeof(ForeColors29235)=="undefined") ForeColors29235= "white"; if (typeof(TargetDates29235)=="undefined") TargetDates29235 = "03/30/2024 9:00:00 PM"; if (typeof(DisplayFormats29235)=="undefined") DisplayFormats29235 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives29235)=="undefined") CountActives29235 = true; if (typeof(FinishMessages29235)=="undefined") FinishMessages29235 = ""; if (typeof(CountSteppers29235)!="number") CountSteppers29235 = -1; if (typeof(LeadingZeros29235)=="undefined") LeadingZeros29235 = true; CountSteppers29235 = Math.ceil(CountSteppers29235); if (CountSteppers29235 == 0) CountActives29235 = false; var SetTimeOutPeriods29235 = (Math.abs(CountSteppers29235)-1)*1000 + 990; puti(BackColors29235, ForeColors29235); var dthens29235 = new Date(TargetDates29235); var dnows29235 = new Date("04/28/2024 8:46:27 AM"); if(CountSteppers29235>0) ddiffs29235 = new Date(dnows29235-dthens29235); else ddiffs29235 = new Date(dthens29235-dnows29235); gsecss29235 = Math.floor(ddiffs29235.valueOf()/1000); CountBacks29235(gsecss29235);