
//- Windowing

var PopUpWindow ;
function PopUpxx (
	src, name, width, height, screenx, screeny,
	scrollbar, resize, toolbar, status, menubar, location, directories
) {
	var size, pos ;
	size ='' ;
	pos ='';
	if ( width > 0 ) size =',width=' + width ;
	if ( height > 0 ) size =size + ',height=' + height ;
	if ( screenx >= 0 ) pos =',screenX=' + screenx + ',left=' + screenx ;
	if ( screeny >= 0 ) pos =pos + ',screenY=' + screeny + ',top=' + screeny ;
	scrollbar =(scrollbar == 1) ? 'yes' : 'no' ;
	resize =(resize == 1) ? 'yes' : 'no' ;
	toolbar =(toolbar == 1) ? 'yes' : 'no' ;
	status =(status == 1) ? 'yes' : 'no' ;
	menubar =(menubar == 1) ? 'yes' : 'no' ;
	location =(location == 1) ? 'yes' : 'no' ;
	directories =(directories == 1) ? 'yes' : 'no' ;
	//- Ouverture de la pop-up
	PopUpWindow =window.open (
		'about:blank', name,
		  'scrollbars=' + scrollbar
		+ ',resizable=' + resize
		+ ',toolbar=' + toolbar
		+ ',status=' + status
		+ ',menubar=' + menubar
		+ ',location=' + location
		+ ',directories=' + directories
		+ size + pos
	) ;
	PopUpWindow.focus () ;
	PopUpWindow.navigate (src) ;
}

//- Sub
function ShowSub (item) {
	var itemObj =eval (item) ;
	//- Ouverture de la pop-up
	PopUpWindow =window.open (
		'about:blank', '_blank',
		  'scrollbars=no'
		+ ',resizable=yes'
		+ ',toolbar=no'
		+ ',status=yes'
		+ ',menubar=no'
		+ ',location=no'
		+ ',directories=no'
		+ ',width=300,height=500'
		+ ',screenX=100,left=100,screenY=100,top=100',
		true
	) ;
	PopUpWindow.focus () ;
	PopUpWindow.document.write ('<html><head><link rel="stylesheet" href="/styles/style.css"></head><body>') ;
	PopUpWindow.document.write (itemObj.innerHTML) ;
	PopUpWindow.document.write ('</body></html>') ;
}
