// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
function activateMenu(divid)
{
	this.div = document.getElementById(divid);
	if( this.div )
	{
		 this.lis = this.div.getElementsByTagName("LI");
	   for(var i=0; i<this.lis.length ; i++ )
	   {
		   this.lis[i].onmouseover =
			   function()
			   {
				   this.className+=" over";
			   }
		   
		   this.lis[i].onmouseout =
			   function()
			   {
				   this.className=this.className.replace(" over", "");
			   }
		   
		   
	   }
	}
}

// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
function _windowOnLoad(){
	activateMenu( 'navigation-menu' );
}
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
if(window.attachEvent){
	window.attachEvent('onload',_windowOnLoad)
}else if (window.addEventListener) {
}
var extranet;


function winAuth()
{
if ( (!window.extranet) || window.extranet){
  // var params='toolbar=yes,scrollbars=yes,location=yes,directories=no,menubar=no,status=yes,resizable=yes,top=0,left=0,width=629,height=600';	
  				
    //extranet=window.open('','extranet',params);
    extranet=window.open('','extranet')
     }
    //extranet.moveTo(0,0);
    //extranet.resizeTo(629,600);
	
    extranet.focus()
       
}

function Imprimer(){
    alert("Choisissez une orientation de type paysage au niveau de l'imprimante")
	print();
	return;
}

function keyOnP (evenement) {
    	        var touche = window.event ? evenement.keyCode : evenement.which;
    	            if (touche==13||touche==9){Valider('');}

}
function keyOnI (evenement) {
    	        var touche = window.event ? evenement.keyCode : evenement.which;
    	      if (touche==13||touche==9){Valider('');}
}

// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
function blockError(){return true;}
window.onerror = blockError;
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
