function nothing () { return; }

function swapImg(id,src) {
  if (document.images[id])
    document.images[id].src = src;
}

function writeLayer(id,htm) {
  var obj = null;
  if (obj = document.getElementById(id))
    obj.innerHTML = htm;
}

/* Some AJAX Stuff */

var ajax = null;


function AJAXinit (h) {
  // branch for native XMLHttpRequest object
  if (window.XMLHttpRequest && !(window.ActiveXObject)) {
    try {
      ajax = new XMLHttpRequest();
    } catch(e) {
      ajax = null;
    }
  // branch for IE/Windows ActiveX version
  } else if (window.ActiveXObject) {
    try {
      ajax = new ActiveXObject("Msxml2.XMLHTTP");
    } catch(e) {
      try {
      ajax = new ActiveXObject("Microsoft.XMLHTTP");
      } catch(e) {
        ajax = null;
      }
    }
  }
  
  if(ajax) {
    ajax.onreadystatechange = h;
  }  
}
