function test()
{
	alert('test');
}

<!--ENTER SUR TEXTAREA-->
function ifEnter(field,event)
{
	var theCode = event.keyCode ? event.keyCode : event.which ? event.which : event.charCode;
    if (theCode == 13)
    {
		document.forms[0].submit();
        return false;
    }
	else
		return true;
}
<!--ENTER SUR TEXTAREA-->

var doFocus = true;

function setFocus(formName) { 
		/* Setting focus to the first 'focusable' element which is one with tabindex = 1 or the first in the form loaded. */
		focusableElementsListe = findFocusableElements(formName);
		
		if(focusableElementsListe.length > 0 && doFocus == true) {
			var firstEl = focusableElementsListe.find(function (el){
				return el.tabIndex == 1;
			}) || focusableElementsListe.first();
			currFocused = focusableElementsListe.toArray().indexOf(firstEl);
			firstEl.focus(); // Focus on first focusable element except close button
		}
	}
	
function findFocusableElements(formName){ // Collect form elements or links from MB content

		$(formName).select('input:not([type~=hidden]), select, textarea, button, a[href]').invoke('addClassName', 'focusable');
		return $(formName).select('.focusable');
	}
	
	
 	var fading;

     function fade_in() {
		 
       	if (trans < 100) 
		{
         	trans = trans + 2;
		 
         	if (document.all) { 
		 		$('container').filters.alpha.opacity = trans; 
			}
			
         	$('container').style.MozOpacity = Math.min(parseFloat($('container').style.MozOpacity) + 0.02, 0.99);
         	$('container').style.opacity = Math.min(parseFloat($('container').style.opacity) + 0.02, 0.99);

         	if (trans == 100) 
			{
           		clearInterval(fading);
         	}
       	}
     }

     function fade_loop(b) {

       	if (fading) { clearInterval(fading); }

       	$('container').style.backgroundImage = 'url(' + '\'' + b + '\'' + ')';

       	trans = 0;

       	if (document.all) { $('container').filters.alpha.opacity = 0; speed = 25;}else{speed = 80;}
       	$('container').style.MozOpacity = 0;
       	$('container').style.opacity = 0;

       	fading = setInterval('fade_in()', speed);
     }
	 
	 
	
	 var timer_launch;
	
	 function imgComplete(num){
		
		var ok=0;

		for(var i=0;i<num;i++){
			if ($('img_'+i).complete)
			{
				ok++;
			}else{
				break;
			}
		}
		
		if(ok == num){
			
			hideLoad();
			timer_launch = window.clearInterval(timer_launch);
			fillup();
			
		}
	}
	
	function imgCompleteParution(file){
		var ok=0;
	
		if ($(file).complete)
		{
			ok = 1 ;
		}
		if(ok == 1){
			timer_launch_parution = window.clearInterval(timer_launch_parution);
			Modalbox.resizeToContent();
			
			//$('site').stopWaiting();
		}
	}

	/*var tab_img = new Array;    //tableau contenant les images
    var num=0;                  //num�ro de l'image jou�e
 
   	//var stop=false;

	var timer_diapo;
	var timout_diapo;

	 /* Explication des param�tres 
	
	'boite_diapo' : identifiant de la boite du diaporama. NE PAS MODIFIER
	'img_diapo'   : identifiant de l'image contenu dans la boite diaporama. NE PAS MODIFIER.
	500           : temps (en milliseconde) de l'effet fondu entre 2 images. 1 seconde = 1000 millisecondes.
	7000          : interval de temps entre 2 images. 1 seconde = 1000 millisecondes.
	
	*/
		
		/*function diaporamaStop()
		{
			timer_diapo = window.clearInterval(timer_diapo);
			timout_diapo = window.clearTimeout(timout_diapo);
		}

	  //Fonction qui permet de jouer le diaporama
        function diaporama(divid, imageid, millisec) 
        { 
		

            var speed = Math.round(millisec / 100); 
            var timer = 0; 
          
            document.getElementById(divid).style.backgroundImage = "url(" + tab_img[num] + ")"; 
 
            changeOpac(0, imageid); 
 
            if (num>(tab_img.length-2))
            {num = -1;}
 
		document.getElementById(imageid).style.backgroundImage = "url(" + tab_img[num+1] + ")"; 
           
           for(i = 0; i <= 100; i++)
           { 
                var timout_diapo = setTimeout("changeOpac(" + i + ",'" + imageid+ "')",(timer * speed)); 
                timer++; 
           } 
            
         
          num++;
 
        }
 
 
        
        //Fonction qui attribue l'opacit� � l'objet "image_diapo"
        function changeOpac(opacity, id) 
        {
	
            var object = document.getElementById(id).style;
            object.opacity = (opacity / 100);
            object.MozOpacity = (opacity / 100);
            object.KhtmlOpacity = (opacity / 100);
            object.filter = "alpha(opacity=" + opacity + ")";
        }
		
		*/
		var timer_diapo;
		
		function diaporamaStop()
		{
			timer_diapo = window.clearInterval(timer_diapo);
		}
		
		//Specify background images to slide
		var bgslides=new Array();
				
		//Specify interval between slide (in miliseconds)
		var speedc=5000;
		
		//preload images
		var processed=new Array();
		
		var inc=-1;


		function slideback(){

			if (inc<bgslides.length-1)
				inc++;
			else
				inc=0;
			
			//new Effect.Opacity('container', {duration:2, fps:25, from:1.0, to:0.0});
			
			document.getElementById("container").style.backgroundImage = "url(" + processed[inc].src + ")"; 


		}
		
		function slideback_rev(){

			if (inc == -1)
				inc = bgslides.length-2;
			else if (inc == 0)
				inc = bgslides.length-1;
			else
				inc--;
			
			//new Effect.Opacity('container', {duration:2, fps:25, from:1.0, to:0.0});
			
			document.getElementById("container").style.backgroundImage = "url(" + processed[inc].src + ")"; 


		}
		
		function JP_slideback(){
				
			slideback();

			if($('texte_JP').visible() == true)
			{
				$('texte_JP').fade();

			}
	
		}
		
		function JP_slideback_rev(){
	
			slideback_rev(); 
			
			if($('texte_JP').visible() == true)
			{
				$('texte_JP').fade();

			}
		}