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

function getIt(topic, id) {
  http.open("GET", topic, true);
  http.onreadystatechange=function() {
    if(http.readyState == 4) {
      document.getElementById(id).innerHTML = http.responseText;
    }
  }
  http.send(null);
}
function replaceIt(topic, id) {
  document.getElementById(id).textContent= topic;
}
function loadLink(name, url){
  if(window.frames[name]) {
    parent.window.frames[name].location = url;
    return false;
  }
  return false;
}
function compareWidthHeight(imgSrc){
  myImg = new Image();
  myImg.src = imgSrc;
  if(myImg != null){
    if(myImg.width>=myImg.height){
      return 1;
    }else {
      return 0;
    }
  }else{
    return 1;
  }
}
