 Nom = navigator.appName;
 Version = navigator.appVersion;
 ns4 = (Nom == 'Netscape' && Version >= 4 ) ? 1:0;
 op5 = (Nom == 'Opera' && Version >= 5 ) ? 1:0;
 chrome = (navigator.userAgent.toLowerCase().indexOf('chrome') >=0) ? 1:0;
 ffox = (navigator.userAgent.toLowerCase().indexOf('firefox') >=0) ? 1:0;
 
 function ouvre_popup(page,name) {

		var top=Math.round((screen.height-435)/2);
		var left=Math.round((screen.width-344)/2);
		window.open(page,"popup","menubar=no, status=no, scrollbars=no, menubar=no, width=344, height=475, left="+left+", top="+top+"").focus();
		
 }
  function ouvre_popup2(page,name) {
		var top=Math.round((screen.height-665)/2);
		var left=Math.round((screen.width-344)/2);
       window.open(page,"popup","menubar=no, status=no, scrollbars=no, menubar=no, width=344, height=645, left="+left+", top="+top+"").focus();
       window.open(page,"popup","menubar=no, status=no, scrollbars=no, menubar=no, width=344, height=745, left="+left+", top="+top+"").focus();
 }
 
   function ouvre_popup3(page,name) {
		var top=Math.round((screen.height-665)/2);
		var left=Math.round((screen.width-344)/2);
       window.open(page,"popup","menubar=no, status=no, scrollbars=no, menubar=no, width=344, height=525, left="+left+", top="+top+"").focus();
 }
 
     function ouvre_aide(page,name) {
		var top=Math.round((screen.height-665)/2);
		var left=Math.round((screen.width-344)/2);
       window.open(page,"aide","menubar=no, status=no, scrollbars=no, menubar=no, width=344, height=280, left="+left+", top="+top+"").focus();
       window.open(page,"popup","menubar=no, status=no, scrollbars=no, menubar=no, width=344, height=525, left="+left+", top="+top+"").focus();
 }
 
    function ouvre_aide(page,name) {
		var top=Math.round((screen.height-665)/2);
		var left=Math.round((screen.width-344)/2);
       window.open(page,"aide","menubar=no, status=no, scrollbars=no, menubar=no, width=344, height=240, left="+left+", top="+top+"").focus();
 }
    
    function resizeH_popup(){		
    	var popupH = getElementHeight("contenupopup");
    	var updateH = getElementHeight("update-date");
    	if(Nom == 'Microsoft Internet Explorer')updateH = updateH + 35;
		if(chrome)updateH = updateH + 60;
    	var footerpopupH = getElementHeight("footerpopup");
    	setWinHeight(eval(popupH + footerpopupH + updateH));
    }
    
   function getElementHeight(Elem) {    	
    	if (ns4) {
    		var elem = getObjNN4(document, Elem);
			if(elem) return elem.clip.height;
			else return 0;
    	} else {
    		if(document.getElementById) {
    			var elem = document.getElementById(Elem);
    		} else if (document.all){
    			var elem = document.all[Elem];
    		}
			if(elem){
				if (op5) { 
					xPos = elem.style.pixelHeight;
				} else {
					xPos = elem.offsetHeight;
				}
			}
			else {
				xPos = 0;
			}
    		return xPos;
    	} 
    }
    
    function setWinHeight(myHeight) {
		var w = 344;
		if(chrome)w = 354;
		
		if(ffox){
			window.innerHeight = myHeight;
		}
		else{
			window.resizeTo(w , myHeight);
		}    	 
    }