// JScript File
function openWindow(url) 
{
	popupWin = window.open(url, 'remote','menubar=no, toolbar=no, location=no, directories=no, status=no, scrollbars=yes, resizable=yes, dependent, width=700, height=500, left=50, top=50')
}

function openWindowHW(url, height, width) 
{
	//popupWin = window.open(url, 'remote','menubar=no, toolbar=no, location=no, directories=no, status=no, scrollbars=yes, resizable=yes, dependent, width=' + width +', height=' + height +', left=50, top=50')
	popupWin = window.open(url, 'remote','menubar=no, toolbar=no, location=no, directories=no, status=no, scrollbars=yes, resizable=yes, dependent, width=700, height=500, left=50, top=50')
}

function openWindowModal(url) 
{
	popupWin = window.showModalDialog(url, 'remote','menubar=no, toolbar=no, location=no, directories=no, status=no, scrollbars=yes, resizable=yes, dependent, width=700, height=500, left=50, top=50')
}

function ouvrirLien(url,ouverture,cible) {
  // Cette fonction permet d'ouvrir trois type de lien 
  // 1 : Dans la fenêtre courante
  // 2 : Dans une nouvelle fenêtre
  // 3 : Dans une frame dont la cible doit être précisé

  switch (ouverture) {
    case "1" :
      // Ouverture dans la fenêtre courante
      document.location.href = url;
      break;
    case "2" :
      // Ouverture d'une nouvelle fenêtre
      window.open(url)
      break;
    case "3" :
      // Ouverture dans une frame
      window.top.parent.frames[cible].location.href = url
      break;
    default :
      // Normalement, on n'arrive jamais ici
      alert('Erreur : Cette valeur est hors limite');
      break;
  }
}
