var calendrier = new Calendar('calendrier', 1, 5 );
var calendrier1 = new Calendar('calendrier1', 1, 5 );
var calendrier2 = new Calendar('calendrier2', 100, 0 );

	/*
	window.onresize = function() {
		setFooter();
	}
	*/
		
	function body_onload() {
		application_launch(0,0,0,0);
		bb_init('divBody',false);
	}	

	function select_value ( select_id ) {
		var select = document.getElementById(select_id) ;
		return select.value ;
	}
	
	function reset_value ( select_id ) {
		var element = document.getElementById(select_id) ;
		element.value = "";
	}
	
	function form_input ( input_id, input_value ) {
		var input = document.getElementById(input_id) ;
		input.value = input_value ;
	}
	
	// Ouvre une lien dans une nouvelle fenêtre
	function ouvre_application_launch(objet,action,id,option) {
		win_download = window.open('download.php?fenetre='+fenetre+'&objet='+objet+'&action='+action+'&id='+id+'&option='+option);
	}
	
	// Ouvre une lien dans une nouvelle fenêtre
	function ouvre_lien(lien) {
		win_download = window.open(lien);
	}
	
	// Ouvre un popup
	function openwin(page){
		window.open(page,'test','width=640,height=360, toolbar=no,status=no,scrollbars=yes,resizable=no; location=no,menubar=no,directories=no');
	}
	
	function put(_input,_value) {
		var element = document.getElementById(_input) ;
		element.value = _value ;
	}
	
	function getId(v_id) {
		return (document.getElementById(v_id) != null) ? document.getElementById(v_id) : false;
	}

	function affiche(div,image) {
		
		var element = document.getElementById(div) ;
		if ( element ) {
			if ( image ) {
				element.style.visibility='visible';
				element.style.display='block';
				element.innerHTML = '<img src="'+image+'" alt="'+image+'" height="100px" witdh="100px" />';
			} else {
				element.style.visibility='hidden';
				element.style.display='none';
			}
		}
	}
	
	function calendrier_init(divname , cible){

		calendrier.init(divname, cible);
		calendrier.isDragable(false);
		calendrier.setFormat('fr');
	
	}
	
	function calendrier_show(){
		calendrier.show();
	}
	
	function calendrier1_init(divname , cible){

		calendrier1.init(divname, cible);
		calendrier1.isDragable(false);
		calendrier1.setFormat('fr');
	
	}
	
	function calendrier1_show(){
		calendrier1.show();
	}
	
	function calendrier2_init(divname , cible){

		calendrier2.init(divname, cible);
		calendrier2.isDragable(false);
		calendrier2.setFormat('fr');
	
	}
	
	function calendrier2_show(){
		calendrier2.show();
	}