function AfficherPopup(nomPopup)
{
	popup = document.getElementById(nomPopup);
	popup.style.zIndex = 255;
	popup.style.display = "block";
}

function FermerPopup(nomPopup)
{
	popup = document.getElementById(nomPopup);
	popup.style.zIndex = -1;
	popup.style.display = "none";		
}

function load(url,focus){
    // Handles the case where no parameter was provided for the last argument
    focus = typeof(focus) != "undefined" ? focus : true;

    // Defines the name of the new window
    var name = "_blank";

    // Opens the target url in a new window
    var handler = this.open(url, name);

    // Defaults to a workaround to circumvent the browser popup blocker
    if (typeof(handler) == "undefined" || (handler === null)) {
      // Opens just a blank window
      handler = this.open('', name);

      if (typeof(handler) != "undefined" && (handler !== null)) {
        // Defines now the new url of this window
        handler.location.href = url;
      } else {
        // Updates the current window itself (at last)
        this.location = url;
      }
    }

    // Gives back focus to main window if required
    if (focus && (handler !== false)) {
      handler.opener.focus();
    }
}

