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 (LeadingZeros29725 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks29725(secs) { if (secs < 0) { document.getElementById("cntdwns29725").innerHTML = FinishMessages29725; return; } DisplayStrs29725 = DisplayFormats29725.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs29725 = DisplayStrs29725.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs29725 = DisplayStrs29725.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs29725 = DisplayStrs29725.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns29725").innerHTML = DisplayStrs29725; if (CountActives29725) //alert(SetTimeOutPeriods29725); setTimeout("CountBacks29725(" + (secs+CountSteppers29725) + ")", SetTimeOutPeriods29725); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors29725)=="undefined") BackColors29725 = ""; if (typeof(ForeColors29725)=="undefined") ForeColors29725= "white"; if (typeof(TargetDates29725)=="undefined") TargetDates29725 = "04/26/2024 11:00:00 PM"; if (typeof(DisplayFormats29725)=="undefined") DisplayFormats29725 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives29725)=="undefined") CountActives29725 = true; if (typeof(FinishMessages29725)=="undefined") FinishMessages29725 = ""; if (typeof(CountSteppers29725)!="number") CountSteppers29725 = -1; if (typeof(LeadingZeros29725)=="undefined") LeadingZeros29725 = true; CountSteppers29725 = Math.ceil(CountSteppers29725); if (CountSteppers29725 == 0) CountActives29725 = false; var SetTimeOutPeriods29725 = (Math.abs(CountSteppers29725)-1)*1000 + 990; puti(BackColors29725, ForeColors29725); var dthens29725 = new Date(TargetDates29725); var dnows29725 = new Date("05/05/2024 11:25:13 PM"); if(CountSteppers29725>0) ddiffs29725 = new Date(dnows29725-dthens29725); else ddiffs29725 = new Date(dthens29725-dnows29725); gsecss29725 = Math.floor(ddiffs29725.valueOf()/1000); CountBacks29725(gsecss29725);