function switchImages(image_num,img_src,huge_src) {
  document.images['previewImage'].src = img_src;
  try {
    document.links["hugelink"].href = huge_src;
  } catch(e) { }
  //document.links[link_num].href = "javascript:popUp('', '650', '500');";
}

function popUp(URL, wH, wW) {
  day = new Date();
  id = day.getTime();
  window.open(URL,id,'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=' +wW + ',height=' + wH + ',left = 50,top = 50');
}

// KB - 20050916
function setTargets(target) {
  for(i = 0; i < document.links.length; i++) {
    url = String(document.links[i]);
    if(url.indexOf('index.html#') >= 0) {
      document.links[i].target = "_self";
    } else {
      document.links[i].target = target;
    }
  }
}

