function updateDiv(divID, htmlContent){
  document.getElementById(divID).innerHTML = htmlContent;

}

function updateMan(divID, image){
	htmlContent = "<img src='./images/" + image + "' />";
	updateDiv(divID, htmlContent);
}


function updateAdvice(divID, advice){
	htmlContent = text;
	post(divID, htmlContent);
}



var http = false;
if(navigator.appName == "Microsoft Internet Explorer") {
  http = new ActiveXObject("Microsoft.XMLHTTP");
}
 else {
  http = new XMLHttpRequest();
}

function post(divID, newContent) {
  http.open("GET", newContent, true);
  http.onreadystatechange=function() {
    if(http.readyState == 4) {
      updatePage(divID, http.responseText);
    }
  }
  http.send(null);
}

function updatePage( divID, htmlContent){
  document.getElementById(divID).innerHTML = htmlContent;
}



