function opencenterPW2 (url,nom,height,width) {

var msie=(navigator.userAgent.indexOf("MSIE")!=-1);
var macmsie45=(navigator.appVersion.indexOf("MSIE 4.5")!=-1);
var mac=(navigator.userAgent.indexOf("Mac")!=-1);

// dimensions de la fenetre a modifier selon mac ou win
var w='';
var h='';
var args='';
var moreargs='';

// position au centre
sx=(screen.availWidth-w)/2;
sy=(screen.availHeight-h)/2;

// Mac & Explorer
if(msie && mac) {
	// Mac & Explorer 4.5
	if (macmsie45) {
		w=width;
    	h=height; 
    	sx=(screen.availWidth-w)/2;
		sy=(screen.availHeight-h)/2; 
    	moreargs=',scrollbars=yes';  
    	args='width='+w+', height='+h+',left='+sx+',top='+sy+moreargs;	
	    }
     else	
     {
     w=width;
     h=height;
  	  sx=(screen.availWidth-w)/2;
	  sy=(screen.availHeight-h)/2;
     moreargs=',scrollbars=yes';
     args='width='+w+', height='+h+',left='+sx+',top='+sy;
    }
		
} 

// PC & Explorer
if(msie && !(mac)) {
  w=width;
  h=height;
      	sx=(screen.availWidth-w)/2;
		sy=(screen.availHeight-h)/2;
  moreargs=',scrollbars=yes';
  args='width='+w+', height='+h+',left='+sx+',top='+sy+moreargs;
}

// MAC & Netscape
if(!(msie) && mac) {
  w=width;
  h=height;
      	sx=(screen.availWidth-w)/2;
		sy=(screen.availHeight-h)/2;
  moreargs=',scrollbars=yes';
  args='width='+w+',height='+h+',screenX='+sx+',screenY='+sy+moreargs;
}

// PC & Netscape
if(!(msie) && !(mac)) {
  w=width;
  h=height;
      	sx=(screen.availWidth-w)/2;
		sy=(screen.availHeight-h)/2;
  moreargs=',scrollbars=yes';
  args='width='+w+',height='+h+',screenX='+sx+',screenY='+sy+moreargs;
}


t=window.open(url,nom,args);
t.focus();

}