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 (LeadingZeros29231 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks29231(secs) { if (secs < 0) { document.getElementById("cntdwns29231").innerHTML = FinishMessages29231; return; } DisplayStrs29231 = DisplayFormats29231.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs29231 = DisplayStrs29231.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs29231 = DisplayStrs29231.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs29231 = DisplayStrs29231.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns29231").innerHTML = DisplayStrs29231; if (CountActives29231) //alert(SetTimeOutPeriods29231); setTimeout("CountBacks29231(" + (secs+CountSteppers29231) + ")", SetTimeOutPeriods29231); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors29231)=="undefined") BackColors29231 = ""; if (typeof(ForeColors29231)=="undefined") ForeColors29231= "white"; if (typeof(TargetDates29231)=="undefined") TargetDates29231 = "03/31/2024 10:00:00 PM"; if (typeof(DisplayFormats29231)=="undefined") DisplayFormats29231 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives29231)=="undefined") CountActives29231 = true; if (typeof(FinishMessages29231)=="undefined") FinishMessages29231 = ""; if (typeof(CountSteppers29231)!="number") CountSteppers29231 = -1; if (typeof(LeadingZeros29231)=="undefined") LeadingZeros29231 = true; CountSteppers29231 = Math.ceil(CountSteppers29231); if (CountSteppers29231 == 0) CountActives29231 = false; var SetTimeOutPeriods29231 = (Math.abs(CountSteppers29231)-1)*1000 + 990; puti(BackColors29231, ForeColors29231); var dthens29231 = new Date(TargetDates29231); var dnows29231 = new Date("04/28/2024 6:38:25 PM"); if(CountSteppers29231>0) ddiffs29231 = new Date(dnows29231-dthens29231); else ddiffs29231 = new Date(dthens29231-dnows29231); gsecss29231 = Math.floor(ddiffs29231.valueOf()/1000); CountBacks29231(gsecss29231);