	//------------------------------------------------------------------------------------------
	// Annee		: D4M 2009
	// Fichier 		: function_loading
	// But 			:  bloquer la fenetre et avertir d'attendre
	// Modification		: -
	//------------------------------------------------------------------------------------------

	/*********************************** FUNCTION JAVASCRIPT **********************************/

	//affiche le loading
	function loading_start(){	
		if( document.getElementById( 'over_alt_fullscreen_fond_div' ) && document.getElementById( 'over_alt_loading_fond_div' ) ) {
			// hauteur du loading
			var position_hauteur_page = (utils_screen_position_scroll_vertial()+ 320)+'px';
			document.getElementById('over_alt_loading_fond_div').style.top=position_hauteur_page
			
			// largeur loading
			var position_largeur_page = document.getElementById('over_alt_loading_fond_div').style.width;
			position_largeur_page = (position_largeur_page.substr(0,3));
			
			position_largeur_page = ((utils_screen_largeur_document()/2)-(position_largeur_page/2))+ 'px';
			document.getElementById('over_alt_loading_fond_div').style.left=position_largeur_page;
			
			// apparition du loading
			document.getElementById( 'over_alt_fullscreen_fond_div' ).style.height = utils_screen_hauteur_page() +"px";
			document.getElementById( 'over_alt_fullscreen_fond_div' ).style.display='block';
			document.getElementById('over_alt_loading_fond_div').style.display='block';	
		}
	}
	
	// cache le loading
	function loading_end(){
		if( document.getElementById('over_alt_loading_fond_div') )	
			document.getElementById('over_alt_loading_fond_div').style.display='none';	
	}
	
	// griser la fenêtre
	function disable_windows(){	
		// grisage de la fenetre
		if( document.getElementById('over_alt_fullscreen_fond_div') ) {
			var hauteur_page = utils_screen_hauteur_page()+20+'px'; 
			document.getElementById('over_alt_fullscreen_fond_div').style.height=hauteur_page;
			document.getElementById('over_alt_fullscreen_fond_div').style.display='block';
		}
	}
	
	function enable_windows(){	
		// rend la fenetre accessible
		if( document.getElementById('over_alt_fullscreen_fond_div') )
			document.getElementById('over_alt_fullscreen_fond_div').style.display='none';
	}