function autoDate () {
	var tDay = new Date();
	var tMonth = tDay.getMonth()+1;
	var tDate = tDay.getDate();
	if ( tMonth < 10) tMonth = "0"+tMonth;
	if ( tDate < 10) tDate = "0"+tDate;
	document.getElementById("cd_mon[206046]").value = tMonth;
	document.getElementById("cd_day[206046]").value = tDate;
	document.getElementById("cd_year[206046]").value = tDay.getFullYear();
 }

window.onload = function() {
	getData('blogad', 'http://diet.fiber35.com/blogad/blogad.html')
       
}

function getData(element, url) {
 var xmlHttp=null;
 if (window.XMLHttpRequest) {
    xmlHttp=new XMLHttpRequest();
  }
  else if (window.ActiveXObject) {
    xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
 if (xmlHttp==null) { // Browser does not support HTTP Request
    return;
 }
  xmlHttp.onreadystatechange=function() {stateChanged(xmlHttp, element);};

  xmlHttp.open("GET", url, true);
 xmlHttp.send(null);
} 

function stateChanged(xmlHttp, element) {
  if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete") {
    if (element != ' ') {
      document.getElementById(element).innerHTML=xmlHttp.responseText;
     autoDate();
    }
  }
}