<!-- Debut script




function openWindow(file,px,py,tx,ty,attribu) {

 /*

 

 les arguments:



 file: page htm a afficher

 px: position horizontale

 py: position verticale

 tx: taille horizontale

 ty: taille verticale

 attribut: voir ci dessous



 les differents attributs:

 directories yes|no

 height number of pixels

 location yes|no

 menubar yes|no

 resizable yes|no

 scrollbars yes|no

 status yes|no

 toolbar yes|no

 width number of pixels

 */



 myWindow= open(file, "newWindow", "top="+px+",left="+py+",width="+tx+",height="+ty+","+attribu);



}


function pop(ref,X,Y){
	var x = 640;
	var y = 480;
	var url = 'popups/showsrc.php?ref='+ref;
	var left = 0;
	var top = 0;
	if(X != 0){x = X;}
	if(Y != 0){y = Y;}
	left = (screen.width-x)/2;
	top = (screen.height-y)/2;

	window.open(url,'Agrandi','left ='+left+',top='+top+',width='+x+',height='+y+',scrollbars=no,status=no,menubar=no,resizeable=no');
}
//  Fin script -->