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 (LeadingZeros29206 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks29206(secs) { if (secs < 0) { document.getElementById("cntdwns29206").innerHTML = FinishMessages29206; return; } DisplayStrs29206 = DisplayFormats29206.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs29206 = DisplayStrs29206.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs29206 = DisplayStrs29206.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs29206 = DisplayStrs29206.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns29206").innerHTML = DisplayStrs29206; if (CountActives29206) //alert(SetTimeOutPeriods29206); setTimeout("CountBacks29206(" + (secs+CountSteppers29206) + ")", SetTimeOutPeriods29206); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors29206)=="undefined") BackColors29206 = ""; if (typeof(ForeColors29206)=="undefined") ForeColors29206= "white"; if (typeof(TargetDates29206)=="undefined") TargetDates29206 = "03/31/2024 10:00:00 PM"; if (typeof(DisplayFormats29206)=="undefined") DisplayFormats29206 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives29206)=="undefined") CountActives29206 = true; if (typeof(FinishMessages29206)=="undefined") FinishMessages29206 = ""; if (typeof(CountSteppers29206)!="number") CountSteppers29206 = -1; if (typeof(LeadingZeros29206)=="undefined") LeadingZeros29206 = true; CountSteppers29206 = Math.ceil(CountSteppers29206); if (CountSteppers29206 == 0) CountActives29206 = false; var SetTimeOutPeriods29206 = (Math.abs(CountSteppers29206)-1)*1000 + 990; puti(BackColors29206, ForeColors29206); var dthens29206 = new Date(TargetDates29206); var dnows29206 = new Date("04/29/2024 7:25:11 AM"); if(CountSteppers29206>0) ddiffs29206 = new Date(dnows29206-dthens29206); else ddiffs29206 = new Date(dthens29206-dnows29206); gsecss29206 = Math.floor(ddiffs29206.valueOf()/1000); CountBacks29206(gsecss29206);