//syntaxe pour l'inclusion d'un fichier js : <script language="javascript" src="../../javascript/cheminDuFichier.js"></script> 

function openWindow(url , name , width , height , showChrome , canResize , canScroll , top , left) {
	
addScrolls = "no";
if (canScroll == true ) addScrolls = "auto";

	var options = 'status='+showChrome+', resizable='+canResize+', menubar='+showChrome+', toolbar='+showChrome+',location='+showChrome+',width='+width+',height='+height+',scrollbars='+canScroll;
	if ( top != "" ) {
		options+= ',top='+top;
	}
	if ( left != "" ){
		options+= ',left='+left;
	}
	newWindow = window.open( url, name, options);
    newWindow.focus()
}

 
function getWidthCenterOfPage(){
	return (getWidthOfPage()/2);
}

function getWindowWidth() {
		
	if ( document.all ) width = document.body.clientWidth;
	//ie needs 16 px than ns
	if ( document.layers ) width = window.innerWidth-16;	
	
	return width;
}

	
function getWindowHeight() {
	if ( document.all ) height = document.body.clientHeight;
	if ( document.layers ) height=window.innerHeight; 
	
	return height;
}

