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 (LeadingZeros29230 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks29230(secs) { if (secs < 0) { document.getElementById("cntdwns29230").innerHTML = FinishMessages29230; return; } DisplayStrs29230 = DisplayFormats29230.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs29230 = DisplayStrs29230.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs29230 = DisplayStrs29230.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs29230 = DisplayStrs29230.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns29230").innerHTML = DisplayStrs29230; if (CountActives29230) //alert(SetTimeOutPeriods29230); setTimeout("CountBacks29230(" + (secs+CountSteppers29230) + ")", SetTimeOutPeriods29230); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors29230)=="undefined") BackColors29230 = ""; if (typeof(ForeColors29230)=="undefined") ForeColors29230= "white"; if (typeof(TargetDates29230)=="undefined") TargetDates29230 = "03/31/2024 10:00:00 PM"; if (typeof(DisplayFormats29230)=="undefined") DisplayFormats29230 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives29230)=="undefined") CountActives29230 = true; if (typeof(FinishMessages29230)=="undefined") FinishMessages29230 = ""; if (typeof(CountSteppers29230)!="number") CountSteppers29230 = -1; if (typeof(LeadingZeros29230)=="undefined") LeadingZeros29230 = true; CountSteppers29230 = Math.ceil(CountSteppers29230); if (CountSteppers29230 == 0) CountActives29230 = false; var SetTimeOutPeriods29230 = (Math.abs(CountSteppers29230)-1)*1000 + 990; puti(BackColors29230, ForeColors29230); var dthens29230 = new Date(TargetDates29230); var dnows29230 = new Date("04/27/2024 6:58:04 PM"); if(CountSteppers29230>0) ddiffs29230 = new Date(dnows29230-dthens29230); else ddiffs29230 = new Date(dthens29230-dnows29230); gsecss29230 = Math.floor(ddiffs29230.valueOf()/1000); CountBacks29230(gsecss29230);