
// 1
// Ins&eacute;rer ce code dans <head> :
/* <script type="text/javascript" src="_js/popup.js"></script> */

// 2
// Notation du lien :
// <a href="page.htm" onclick="popUp(this.href,'console',h,l); return false;">
// avec h la hauteur en pixel de la fen&ecirc;tre
// et l la largeur en pixel de la fen&ecirc;tre

// Accessibilit&eacute; :
// Permet d'afficher la page m&ecirc;me si Javascript est d&eacute;sactiv&eacute;.


var newWin = null;
function closeWin(){
if (newWin != null){
if(!newWin.closed)
newWin.close();
}
}
function popUp(strURL,strType,strHeight,strWidth) {
closeWin();
var strOptions="";
if (strType=="console") strOptions="resizable,height="+strHeight+",width="+strWidth;
if (strType=="fixed") strOptions="status,height="+strHeight+",width="+strWidth;
if (strType=="elastic") strOptions="toolbar,menubar,scrollbars,resizable,location, height="+strHeight+",width="+strWidth;
newWin = window.open(strURL, 'newWin', strOptions);
newWin.focus();
}
