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 (LeadingZeros29544 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks29544(secs) { if (secs < 0) { document.getElementById("cntdwns29544").innerHTML = FinishMessages29544; return; } DisplayStrs29544 = DisplayFormats29544.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs29544 = DisplayStrs29544.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs29544 = DisplayStrs29544.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs29544 = DisplayStrs29544.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns29544").innerHTML = DisplayStrs29544; if (CountActives29544) //alert(SetTimeOutPeriods29544); setTimeout("CountBacks29544(" + (secs+CountSteppers29544) + ")", SetTimeOutPeriods29544); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors29544)=="undefined") BackColors29544 = ""; if (typeof(ForeColors29544)=="undefined") ForeColors29544= "white"; if (typeof(TargetDates29544)=="undefined") TargetDates29544 = "03/30/2024 10:00:00 PM"; if (typeof(DisplayFormats29544)=="undefined") DisplayFormats29544 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives29544)=="undefined") CountActives29544 = true; if (typeof(FinishMessages29544)=="undefined") FinishMessages29544 = ""; if (typeof(CountSteppers29544)!="number") CountSteppers29544 = -1; if (typeof(LeadingZeros29544)=="undefined") LeadingZeros29544 = true; CountSteppers29544 = Math.ceil(CountSteppers29544); if (CountSteppers29544 == 0) CountActives29544 = false; var SetTimeOutPeriods29544 = (Math.abs(CountSteppers29544)-1)*1000 + 990; puti(BackColors29544, ForeColors29544); var dthens29544 = new Date(TargetDates29544); var dnows29544 = new Date("04/29/2024 1:11:08 PM"); if(CountSteppers29544>0) ddiffs29544 = new Date(dnows29544-dthens29544); else ddiffs29544 = new Date(dthens29544-dnows29544); gsecss29544 = Math.floor(ddiffs29544.valueOf()/1000); CountBacks29544(gsecss29544);