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