// JavaScript Document
var blnDone = false;

function init() {
   // quit if this function has already been called
   if (blnDone) return;

   // flag this function so we don't do the same thing twice
   blnDone = true;
	    
   // Gestion du formulaire d'ajout d'un accès
  var objForm = document.getElementsByTagName("ul");
   
   if (objForm[0]) {

	   var objLinks = objForm[0].getElementsByTagName("a");
	   
	   if (objLinks.length > 0) {
		  for (var i = 0; i < objLinks.length; i++) {
				objLinks[i].target = "_blank";
		  }
	   }
		
   }
   
};


/* Ce bout de code est ajout? afin d'appeler init seulement lorsque le DOM est charg? compl?tement */
/* for Mozilla */
if (document.addEventListener) {
   document.addEventListener("DOMContentLoaded", init, null);
}

/* for Internet Explorer */
/*@cc_on @*/
/*@if (@_win32)
   document.write("<script defer src=ie_onload.js><"+"/script>");
/*@end @*/

/* for other browsers */
window.onload = init;
