

<!--

function swap_image(daImage, daSrc){
  var objStr,obj;

  // Check to make sure that images are supported in the DOM.
  if(document.images){
    // Check to see whether you are using a name, number, or object
    if (typeof(daImage) == 'string') {
      // This whole objStr nonesense is here solely to gain compatability
      // with ie3 for the mac.
      objStr = 'document.' + daImage;
      obj = eval(objStr);
      obj.src = daSrc;
    } else if ((typeof(daImage) == 'object') && daImage && daImage.src) {
      daImage.src = daSrc;
    }
  }
}


// -->
// popup - permet d'afficher une fenêtre centrer.

function popup(url, name, popw, poph, parm) {
  var w = screen.width;
  var h = screen.height;

  if (popw == undefined) {
    popw=640;
  }

  if (poph == undefined) {
    poph=480;
  }

  var l = (w-popw)/2, t = (h-poph)/2;

  if (parm == undefined) {
    var w = window.open(url, name, "left="+l+",top="+t+",width="+popw+"+,height="+poph+",fullscreen=no,scrollbars=yes,resizable=yes");
  } else {
    var w = window.open(url, name, "left="+l+",top="+t+",width="+popw+"+,height="+poph+","+parm);
  }

}

// Close le popup et fait un refresh du parent.
function close_popup_refresh(url) {
  parent.window.opener.document.location = url;
  self.close();
}