function loadImg(theImg,theSrc) {
  if (document.images)
    document.images[theImg].src = theSrc;
}

function preloadImg(theSrc) { 
  if (document.images) {
    if (document.preloadArray==null) document.preloadArray = new Array();
    var i = document.preloadArray.length;
    document.preloadArray[i] = new Image;
    document.preloadArray[i].src = theSrc;
  }
}
