var xmonth = '11'; var xday = '20'; var xdow = 0; var xhour = '0'; var xmin = 0; var xtz = +1; var xlab = 'cdmini'; function xzeroPad(num,count) { var numxzeroPad = num + ''; while(numxzeroPad.length < count) { numxzeroPad = "0" + numxzeroPad; } return numxzeroPad; } function xstart() {xdisplayCountdown(xsetCountdown(xmonth,xday,xhour,xmin,xtz),xlab);} xloaded(xlab,xstart); var pagexloaded = 0; window.onload = function() {pagexloaded = 1;} function xloaded(i,f) {if (document.getElementById && document.getElementById(i) != null) f(); else if (!pagexloaded) setTimeout('xloaded(\''+i+'\','+f+')',100); } function xsetCountdown(xmonth,xday,xhour,xmin,xtz) {var m = xmonth; if (xmonth=='*') m = 0; var c = setC(m,xday,xhour,xtz); if (xmonth == '*' && c < 0) c = setC('*',xday,xhour,xtz); return c;} function setC(xmonth,xday,xhour,xtz) {var toDate = new Date();if (xday.substr(0,1) == '+') {var day1 = parseInt(xday.substr(1));toDate.setDate(toDate.getDate()+day1);} else{toDate.setDate(xday);}if (xmonth == '*')toDate.setMonth(toDate.getMonth() + 1);else if (xmonth > 0) { if (xmonth <= toDate.getMonth())toDate.setFullYear(toDate.getFullYear() + 1);toDate.setMonth(xmonth-1);} if (xdow >0) toDate.setDate(toDate.getDate()+(xdow-1-toDate.getDay())%7); toDate.setHours(xhour);toDate.setMinutes(xmin-(xtz*60));toDate.setSeconds(0);var fromDate = new Date();fromDate.setMinutes(fromDate.getMinutes() + fromDate.getTimezoneOffset());var diffDate = new Date(0);diffDate.setMilliseconds(toDate - fromDate);return Math.floor(diffDate.valueOf()/1000);} function xdisplayCountdown(countdn,cdmini) {if (countdn < 0) document.getElementById(cdmini).innerHTML = ''; else {var xsecs = countdn % 60; if (xsecs < 10) secs = '0'+xsecs;var countdn1 = (countdn - xsecs) / 60;var xmins = countdn1 % 60; if (xmins < 10) xmins = '0'+xmins;countdn1 = (countdn1 - xmins) / 60;var xhours = countdn1 % 24;var xdays = (countdn1 - xhours) / 24; xdays = xzeroPad(xdays,2); xhours = xzeroPad(xhours,2); xmins = xzeroPad(xmins,2); xsecs = xzeroPad(xsecs,2); imagehtml = ''; document.getElementById(cdmini).innerHTML = '' + imagehtml + '' ; setTimeout('xdisplayCountdown('+(countdn-1)+',\''+cdmini+'\');',999);}}div = document.getElementById('headers'); div.innerHTML = '
\"A-Design
\"Register
';