var http = false;

if(navigator.appName == "Microsoft Internet Explorer") {
  http = new ActiveXObject("Microsoft.XMLHTTP");
} else {
  http = new XMLHttpRequest();
} 

function replace(changeurlinfo) {

  http.open("GET", changeurlinfo+"comp=1", true);
  http.onreadystatechange=function() {
    if(http.readyState == 4) {
      document.getElementById('compcont').innerHTML = http.responseText;
    }
  }
  http.send(null);
}

function removep(changeurlinfo) {
  http.open("GET", changeurlinfo+"del=1", true);
  http.onreadystatechange=function() {
    if(http.readyState == 4) {
      document.getElementById('compcont').innerHTML = http.responseText;
    }
  }
  http.send(null);
}
