 

  
		/*
		Ajouter marque page firefox et ie
		*/
		
		function clearText(thefield){
			if (thefield.defaultValue==thefield.value)
			thefield.value = ""
		} 
			
		function CreateBookmarkLink() {
			title = "Académie César Franck de Visé";
			url = "http://www.academievise.be/";
			if (window.sidebar) {
			// Mozilla Firefox Bookmark
			alert("Ajouter le site de l'Académie dans vos favoris Firefox");
			window.sidebar.addPanel(title, url,"");
			} else if( window.external ) {
			// IE Favorite
			alert("Ajouter le site de l'Académie dans vos favoris Intenet Explorer");
			window.external.AddFavorite( url, title);
			}
			else if(window.opera && window.print) {
			// Opera Hotlist
			return true; }
		}
		
		
		
		
		/*
		Passer le site en mode apercu avant impression
		*/
		
		function regleStyle(title) {
		   var i, a, main;
		   for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {
			 if(a.getAttribute("rel").indexOf("style") != -1
				&& a.getAttribute("title")) {
			   a.disabled = true;
			   if(a.getAttribute("title") == title) a.disabled = false;
			 }
		   }
		}

		
		

		/*
		Afficher ou non certaines options dans le form
		*/

		function montrer(laCase,leCalk)
		{
			document.getElementById(leCalk).style.visibility="visible";
		} 
			function cacher(laCase,leCalk)
		{
			document.getElementById(leCalk).style.visibility="hidden";
		} 

		function montrecache(laCase,leCalk)
		{
			
			if (document.getElementById(leCalk).style.visibility=="visible")
			   {
			   document.getElementById(leCalk).style.visibility="hidden";
			   
			   }
			else
			   {
			   document.getElementById(leCalk).style.visibility="visible";
			   
			   }

		} 


		function montrecache_inv(laCase,leCalk)
		{
			
			if (document.getElementById(leCalk).style.visibility=="hidden")
			   {
			   document.getElementById(leCalk).style.visibility="visible";
			   
			   }
			else
			   {
			   document.getElementById(leCalk).style.visibility="hidden";
			   
			   }

		} 
		
		
		
		
function ChangeUrl(formulaire){
if (formulaire.ListeUrl.selectedIndex != 0){
location.href = formulaire.ListeUrl.options[formulaire.ListeUrl.selectedIndex].value;
}
}
function ChangeUrl2(formulaire){
if (formulaire.ListeUrl2.selectedIndex != 0){
location.href = formulaire.ListeUrl2.options[formulaire.ListeUrl2.selectedIndex].value;
}
}
function ChangeUrl_stat(formulaire){
if (formulaire.Liste_stat_mod.selectedIndex != 0){
location.href = formulaire.Liste_stat_mod.options[formulaire.Liste_stat_mod.selectedIndex].value;
}
}
		
				
