function openpopWindow(theURL,winName,features) {
  window.open(theURL,winName,features);
}


function openWindow(url) {
	// width & height & top
	var w = 800;
	var h= 600;
	var top = 48;
	// new window position -- right, left, center
	var position = "center";
	var winX = 32;
	var winY = top;

	bVer = parseInt(navigator.appVersion); 
	if(bVer >= 4) {
		if(position=="right"){
			winX = screen.width - w -32;
			}
		if(position=="center"){
			winX = (screen.width/2)-(w/2);
			winY = (screen.height/2)-(h/2);
			}
	}
	popupWin = window.open(url,'newwin','toolbar=no,width='+ w +',height= ' + h + ',directories=no,status=no,scrollbars=yes,resizable=yes,top=' + winY + ',left=' + winX +',menubar=no');
}

// Script de passage souris sur texte pour affichage d'info dans cellule info
function changeAide(titre,texte){
		if(titre && texte != ""){
			document.getElementById("info").innerHTML='<img src="images/info_small.gif" align="absmiddle"><span class="bg12">'+titre+'</span><br><br><span class="b12">'+texte+'</span>';	
		}
		else{
			document.getElementById("info").innerHTML='';
		}
}